colinmollenhour / magento-mongo

MongoDb abstraction layer and atomic job queue for Magento
Other
124 stars 50 forks source link

Call to a deprecated function #14

Open kamilw-ed opened 10 years ago

kamilw-ed commented 10 years ago

Hi!

I am running Cm_Mongo on my local for tests. Your recent fixes made it possible for me to work with it and I really like the potential it is providing.

I have noticed that my system.log is full of this error:

2014-10-08T11:41:23+00:00 ERR (3): Deprecated functionality: MongoCollection::insert(): The 'safe' option is deprecated, please use 'w' instead  in /var/www/dev/magento-mongo/lib/mongodb-php-odm/classes/mongo/collection.php on line 192

I think that I am using the most recent Mongo driver. Could you fix it, please? We should not really use deprecated functionality.

Kind regards, kamil

colinmollenhour commented 10 years ago

Rather than simply remove it, it should probably be replaced with some new config options.. Feel free to create a pull request. :)

ksaltik commented 8 years ago

Hi,