Here's a
possible explanation of what is happening: (Not saying this actually happened, but something to think about):
Your boyfriend started the car with FOB #1. You then manually locked the car w/o any FOB on you. When you tried to open the car with your FOB ( #2 ), the car didn't recognize it because of the way the car was locked.
Not sure if this scenario would cause a problem, but I DO know that my TCH has reacted strangely when I use change FOBs while working on the car, especially if the car is "ON".
In the morning, I'll see if I can check out this scenario. (And hope and pray that I don't get locked out of the car like you did!

) -- May be sure to leave ONE window down.