You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I want to try to update the embedded object of an entity and when updating it, also update a value automatically with the onUpdate parameter, but mongodb throws an error when trying to do that.
sawa-ko
changed the title
Error when using onUpdate decorator on an entity embed object
Error when using onUpdate parameter on an entity embed object
Oct 17, 2021
Well, this is not a bug, onCreate/onUpdate options on embeddables are simply not (yet) supported, especially with object mode. Embeddables support only a subset of the options.
Describe the bug
I want to try to update the embedded object of an entity and when updating it, also update a value automatically with the onUpdate parameter, but mongodb throws an error when trying to do that.
Stack trace
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Reproduction repo:
https://github.com/kaname-png/mikro-orm-error
Versions
The text was updated successfully, but these errors were encountered: