mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #10581] Make "EntityChangeSet" available in PostUpdateEventArgs #12467
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/10581
State: closed
Merged: No
Not a final PR yet, but why not make "EntityChangeSet" available in PostUpdateEventArgs?
I see a lot of Stack Overflow solutions were they temporary cache the Changeset in "PreUpdate", use it in "PostUpdate" and then remove it, but that not a steady solution.
With this PR you can do some magic after the entity has been updated (ok, it can still fail if the transaction fails) and check which fields has changed. For example:
Todo: