[PR #1300] [2.4] #1169 DDC-3343 one-to-omany persister deletes only on EXTRA_LAZY plus orphanRemoval #9360

Closed
opened 2026-01-22 16:04:05 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: Yes


As per #1169 and DDC-3343 ( http://www.doctrine-project.org/jira/browse/DDC-3343 ), EXTRA_LAZY PersistentCollection#removeElement() calls should only affect the database if orphanRemoval=true is specified in the mappings.

Otherwise, being the one-to-many the inverse side, no action should be performed.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1300 **State:** closed **Merged:** Yes --- As per #1169 and DDC-3343 ( http://www.doctrine-project.org/jira/browse/DDC-3343 ), `EXTRA_LAZY` `PersistentCollection#removeElement()` calls should only affect the database if `orphanRemoval=true` is specified in the mappings. Otherwise, being the `one-to-many` the inverse side, no action should be performed.
admin added the pull-request label 2026-01-22 16:04:05 +01:00
admin closed this issue 2026-01-22 16:04:05 +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#9360