[PR #6590] The collection is deleted twice at the post flush event #10051

Open
opened 2026-01-22 16:06:16 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/6590

State: closed
Merged: No


Some collection maybe deleted twice at the post flush event, because UOW not clear calculated change set before invoke postFlush. So if there is event listener which calls flush in postFlush event, the collection will be deleted a twice. For example I added failing tests for this bug

Thanks,
Vladimir

**Original Pull Request:** https://github.com/doctrine/orm/pull/6590 **State:** closed **Merged:** No --- Some collection maybe deleted twice at the post flush event, because UOW not clear calculated change set before invoke postFlush. So if there is event listener which calls flush in postFlush event, the collection will be deleted a twice. For example I added failing tests for this bug Thanks, Vladimir
admin added the pull-request label 2026-01-22 16:06:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10051