Replies: 1 comment 1 reply
-
edit: Actually, the real problem here is that the data are used to rehydrate the entity, which overrides the constructor. Will fix that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an entity, I play with constructor to know how it work. But from this there some confuse:
As I understand, title and author will pass to constructor and foo is assigned.
Now I test by my own situation:
Now permissions will be
The point make me confuse is: From doc, it says: "This will extract title and author from the data and pass it to the constructor, and assign only the rest (so here only the foo property) to the created entity". For my situation, it must be: "action and actionName will pass it to constructor", so actionName must be "Create permission12345" instead of "Create permission".
Am I misunderstand something ?
MikroORM version: 5.8.1
NodeJS: 16
Beta Was this translation helpful? Give feedback.
All reactions