Sammaye/MongoYii — pull request #237 by ArsSirek (2014-11-05 13:27:28+00:00)
Title: resetScope for FindOne

Hi, Sammaye.
May be I'am missing something, but it seems that we should call resetScope before the return statement.
In case, when a record isn't found by specified scopes - $record variable contains null. As result, provided scopes maintains in EmongoDocument static array $_models. For my case, it caused problems, because i'm using findOne many times with different scopes during one request.
I didn't observe your extension well, and warry if this change will affect anything else.
Best regards, and thanks for cute and powerful extension
Arsen.