DDC-1654: OrphanRemoval does not work with One-To-Many, Unidirectional with Join Table #2078

Closed
opened 2026-01-22 13:39:51 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 16, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user prolic:

OrphanRemoval is only allowed for one-to-one and one-to-many mappings. But using One-To-Many, Unidirectional with Join Table, the relation will be declared as Many-To-Many with a unique contraint, but the orphan removal flag doesn't work in this case (but should).

Originally created by @doctrinebot on GitHub (Feb 16, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user prolic: OrphanRemoval is only allowed for one-to-one and one-to-many mappings. But using One-To-Many, Unidirectional with Join Table, the relation will be declared as Many-To-Many with a unique contraint, but the orphan removal flag doesn't work in this case (but should).
admin added the Bug label 2026-01-22 13:39:51 +01:00
admin closed this issue 2026-01-22 13:39:52 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 20, 2012):

Comment created by @beberlei:

Fixed.

@doctrinebot commented on GitHub (Feb 20, 2012): Comment created by @beberlei: Fixed.
Author
Owner

@doctrinebot commented on GitHub (Feb 20, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 20, 2012): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Feb 20, 2012):

Comment created by @beberlei:

a32948b20f

@doctrinebot commented on GitHub (Feb 20, 2012): Comment created by @beberlei: https://github.com/doctrine/doctrine2/commit/a32948b20fd3f67bd29e9dec5f637a46edfffff6
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2078