purekid / mongodm

MongoDB ORM that includes support for references,embed and multilevel inheritance.
MIT License
200 stars 47 forks source link

MongoDM not fully support PHP 7.1/PHP 7.2/PHP7.0 for find() function #99

Open bc96123 opened 6 years ago

bc96123 commented 6 years ago

While I install the php from https://webtatic.com/packages/php71/#sapis for PHP7.2 ,PHP7.1 and PHP7.0, I have try to use find() function but the system throw me the error below. I install PHP7.2 in windows by XAMPP is working fine with mongodm.

Argument 3 passed to MongoDB\Driver\Server::executeQuery() must be an instance of MongoDB\Driver\ReadPreference or null, array given

Kindly provide new fix for this issues.