Deprecated: MongoCollection::save()
I used multiple findFirst and save() at the same time.
show error
Deprecated: MongoCollection::save(): The 'safe' option is deprecated, please use 'w' instead
This has to do with the version of the mongo client being used. They will have to put conditionals in to check the client version.
https://github.com/phalcon/cphalcon/blob/644be915f6bbc3c24165f6948b24da19f152aa4e/ext/mvc/collection.c#L1410
this line should be change to "w"
I had to see the other framework (eg. kohana) https://github.com/tchemineau/kohana-mongodb/commit/b3366f71b22dc1af1572302573f37b8a94a42e6d
I believe we do use 'w' instead of 'safe', at least in 1.3.0: https://github.com/phalcon/cphalcon/blob/1.3.0/ext/mvc/collection.c#L1491
Submitted PR for 1.2.5: #1797
thank for resolve my issue
I've finding the code at all line in collection.c, I found the same issue https://github.com/phalcon/cphalcon/blob/1.3.0/ext/mvc/collection.c#L2016
referrence http://www.php.net/manual/en/mongocollection.remove.php
Fix submitted