mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3079: preUpdate in EntityListener not run in transaction #3821
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 @doctrinebot on GitHub (Apr 10, 2014).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user jirin:
I have entity:
And Entity Listener with preRemove.
I call
preRemove in Entity Listener is called, BUT before Begin transaction...
I can do
$em->transactional(function(){}); then it's full in transaction..
@doctrinebot commented on GitHub (Aug 18, 2014):
Comment created by @ocramius:
As of
ff80187930/lib/Doctrine/ORM/UnitOfWork.php (L344), I see thatpreUpdatelisteners are executed AFTER the transaction has been started.Marking as invalid
@doctrinebot commented on GitHub (Aug 18, 2014):
Issue was closed with resolution "Invalid"