We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I call upsert using a javascript object (not an entity) the upsert method modifies the passed in object. It looks like this is caused by this line:
ChangeSetPersister.mapReturnedValues
mpalmerlee/mikro-orm-reproduction@a3590ef
@mikro-orm/postgresql
@mikro-orm/core@6.0.5-dev.1
v20.5.0
OSX
The text was updated successfully, but these errors were encountered:
Notice in the linked repro the data object now contains the id:
Sorry, something went wrong.
3d8c242
fix(core): do not mutate data provided to em.upsert/Many
em.upsert/Many
5acb4eb
Closes #5136
No branches or pull requests
Describe the bug
If I call upsert using a javascript object (not an entity) the upsert method modifies the passed in object. It looks like this is caused by this line:
ChangeSetPersister.mapReturnedValues
Reproduction
mpalmerlee/mikro-orm-reproduction@a3590ef
What driver are you using?
@mikro-orm/postgresql
MikroORM version
@mikro-orm/core@6.0.5-dev.1
Node.js version
v20.5.0
Operating system
OSX
Validations
The text was updated successfully, but these errors were encountered: