colinmollenhour / mongodb-php-odm

A simple but powerful set of wrappers for using MongoDb in PHP (also a Kohana 3 module)
BSD 3-Clause "New" or "Revised" License
208 stars 50 forks source link

MongoCollection::insert(): The 'safe' option is deprecated, please use 'w' instead #60

Closed ghost closed 10 years ago

ghost commented 10 years ago

This error happended when I tried such operations as follows: $user = Mongo_Document::factory('users'); $user->name="andy"; $user->save(); therefore, I found that "safe"Deprecated. Please use the WriteConcern w option. so, I changed the 'safe' to 'w' in the document.php save() function ps: my mongodb version 2.2.4

colinmollenhour commented 10 years ago

Fixed.