mongor icon indicating copy to clipboard operation
mongor copied to clipboard

Bug in the Mongor\Model::_first() method

Open RuslanGetmansky opened this issue 12 years ago • 0 comments

Mongor\Model::_first() returns object with empty attributes instead of NULL when no document is found. As a result there is an exception in mongoauth.php (line 39) when non-existing user tries to log in.

Corresponding method Laravel\Database\Eloquent\Query::first() returns NULL in the same situation.

RuslanGetmansky avatar Jan 16 '13 15:01 RuslanGetmansky