Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upsert entity #108

Open
sokil opened this issue Aug 13, 2015 · 1 comment
Open

upsert entity #108

sokil opened this issue Aug 13, 2015 · 1 comment

Comments

@sokil
Copy link
Owner

sokil commented Aug 13, 2015

Maybe better this then setId/defineId?

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

@horrower
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants