mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Find a way to allow calling EntityManager::flush() from within running commit phases
#7229
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 @mpdude on GitHub (Oct 10, 2023).
This is a follow-up to #10900 and this comment.
It should be possible and allowed for users to call
flush()from within event listeners that are being called while aflush()is being processed. We consider it to be a reasonable use case to e. g. add additional entities from within event listeners.TODO
preFlushmultiple times?