You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.
$criteria variable in that line, should be populated with EMongoCriteria object by a applyScopes() method, witch is called with reference to parameter (Original Yii AR class doest the same trick, with applyScopes method)
Obviously thats wrong because this request in MongoDb is not correct, but even if its not correct, with this request i do applyScopes with a string as $criteria (thats why $criteria->getConditions() crashes), and i thought you should catch this case.... but i'm wrong because we will not check in this function each type or developement errors..... if we send something different than an array or EMongoCriteria to applyScopes function, is a developper issue, not a conception issue (he should read the doc)
I'm wondering if its a bug or not, because you dont find without criteria but...
On EMongoDocument.php file line 670 you have
"public function find($criteria=null)"
then you do:
"$criteria->getConditions()"
if criteria is null you get an error. Maybe check if its null before getConditions?
The text was updated successfully, but these errors were encountered: