Section about OrphanRemoval should be updated to reflect replacing a collection #5973

Open
opened 2026-01-22 15:23:47 +01:00 by admin · 0 comments
Owner

Originally created by @eigan on GitHub (May 24, 2018).

Feature Request

Q A
New Feature yes / kinda
RFC no
BC Break no

Summary

https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/working-with-associations.html#orphan-removal

This documentation doesnt mention that replacing a collection will trigger an SQL DELETE (and no event) of entities in the collection, even if entities within the previous collection is existing in the new collection.

#7011 #1354

Originally created by @eigan on GitHub (May 24, 2018). ### Feature Request | Q | A |------------ | ------ | New Feature | yes / kinda | RFC | no | BC Break | no #### Summary https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/working-with-associations.html#orphan-removal This documentation doesnt mention that replacing a collection will trigger an SQL DELETE (and no event) of entities in the collection, even if entities within the previous collection is existing in the new collection. #7011 #1354
admin added the Documentation label 2026-01-22 15:23:47 +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#5973