mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
postLoad execute UPDATE instead of updating Entity state. #5809
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?
Originally created by @unckleg on GitHub (Dec 18, 2017).
I have Entity Menu that has a collection of Page Entities.
Page entity has a postLoad event which is setting Image field to a Symfony compatible format.
Whenever I update Menu Entity it will also trigger UPDATE for Image field to DB for all Collection related Page entities, but It should just mutate Entity object how familiar I am with Doctrine Event listeners.
This is also related to: https://github.com/doctrine/doctrine2/issues/4507
@lcobucci commented on GitHub (Dec 18, 2017):
@unckleg could you please send us a failing test case that reproduces that behaviour? It would help us a lot to identify and fix the issue you're describing.
You can find examples on
388afb46d0/tests/Doctrine/Tests/ORM/Functional/Ticket