php-mongo icon indicating copy to clipboard operation
php-mongo copied to clipboard

upsert entity

Open sokil opened this issue 9 years ago • 1 comments

Maybe better this then setId/defineId?

http://doctrine-mongodb-odm.readthedocs.org/en/latest/reference/upserting-documents.html

sokil avatar Aug 13 '15 09:08 sokil

SetId will drop duplicate key if your persist will be fired without "upsert" param

horrower avatar Aug 16 '15 01:08 horrower