mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 01:13:14 +02:00
DDC-1905: Calling EntityManager::flush($entity) calls OnFlushEvent for all entities #2402
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 (Jul 3, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user pmk1c:
As the title says, calling EntityManager::flush($entity) calls OnFlushEvent for all entities. It should only call the event for the flushed entity.
Because of this problems occur when the OnFlush event is triggering itself. It should be possible to flush some entities in the OnFlush event without getting into an infinite loop.
@doctrinebot commented on GitHub (Jul 4, 2012):
Comment created by @beberlei:
Not possible
@doctrinebot commented on GitHub (Jul 4, 2012):
Issue was closed with resolution "Won't Fix"