DDC-3644: One To Many Relationships do not properly support Orphan Removal #4476

Open
opened 2026-01-22 14:42:27 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 27, 2015).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user jcroll:

After speaking to @guilhermeblanco you assume the following method is unreachable when in fact it is not:

https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Persisters/Collection/OneToManyPersister.php#L39

If an entity currently has a persistent collection in a 1-m relationship and that persistent collection is replaced with a new collection the entities not contained in that new collection should be scheduled for deletion but they are not.

Originally created by @doctrinebot on GitHub (Mar 27, 2015). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user jcroll: After speaking to @guilhermeblanco you assume the following method is unreachable when in fact it is not: https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Persisters/Collection/OneToManyPersister.php#L39 If an entity currently has a persistent collection in a 1-m relationship and that persistent collection is replaced with a new collection the entities not contained in that new collection should be scheduled for deletion but they are not.
admin added the New Feature label 2026-01-22 14:42:27 +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#4476