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
in my entity class I have a @Preserialize function, which modifies some properties before serialization. My serialization is done within an command. This command is scheduled and therefore stored in the database. After running the commands I update their "last run on" property. So at the end I call $em->flush.
Here comes the strange behaviour: my serialized entities get persisted with the modified properties. But I never called a persist() on them, they are not be updated at all, only serialized.
Did I misunderstand something?
Best regards,
Wolfram
The text was updated successfully, but these errors were encountered:
Closing, Sorry for the long feedback loop. This issue is probably a problem of your application (calling somewhere persist, or you have cascade=persist|all somewhere.
Hi,
in my entity class I have a @Preserialize function, which modifies some properties before serialization. My serialization is done within an command. This command is scheduled and therefore stored in the database. After running the commands I update their "last run on" property. So at the end I call $em->flush.
Here comes the strange behaviour: my serialized entities get persisted with the modified properties. But I never called a persist() on them, they are not be updated at all, only serialized.
Did I misunderstand something?
Best regards,
Wolfram
The text was updated successfully, but these errors were encountered: