Using laravel 4.0
This is my call to find:
User::find(2)->first()
And this is the result from getQueryLog():
[query] => select * from `users` limit 1
[bindings] => Array
(
)
I expected that it would use a where = ?.
I'm almost certain this worked well until it didn't.
Thanks for the help.
User::find(2)will return user with primary key 2. check here, why are you useing first()->first()is somehow, working against you. Have you tried without?