DDC-2427: Not working orphanRemoval (OneToMany) #3045

Closed
opened 2026-01-22 14:10:41 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (May 3, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user zion03:

Not working orphanRemoval (OneToMany). The element from target entity deleted but still available. I Not get any error, just not deleted.

Configuration example:

class SecurityForm implements SecurityEntityInterface
{
...

/****
 *
 * @ORM\OneToMany(targetEntity="SecurityFormField", mappedBy="form", cascade={"persist"}, orphanRemoval=true)
 * @ORM\OrderBy({"order" = "ASC"})
 */
private $formFields;

....

}

Originally created by @doctrinebot on GitHub (May 3, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user zion03: Not working orphanRemoval (OneToMany). The element from target entity deleted but still available. I Not get any error, just not deleted. Configuration example: class SecurityForm implements SecurityEntityInterface { ... ``` /**** * * @ORM\OneToMany(targetEntity="SecurityFormField", mappedBy="form", cascade={"persist"}, orphanRemoval=true) * @ORM\OrderBy({"order" = "ASC"}) */ private $formFields; ``` .... }
admin added the Bug label 2026-01-22 14:10:41 +01:00
admin closed this issue 2026-01-22 14:10:42 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 4, 2013):

Comment created by @beberlei:

Works for me, see code attached

@doctrinebot commented on GitHub (May 4, 2013): Comment created by @beberlei: Works for me, see code attached
Author
Owner

@doctrinebot commented on GitHub (May 4, 2013):

Comment created by @beberlei:

Please provide a failing testcase if you wan't to reopen the ticket.

@doctrinebot commented on GitHub (May 4, 2013): Comment created by @beberlei: Please provide a failing testcase if you wan't to reopen the ticket.
Author
Owner

@doctrinebot commented on GitHub (May 4, 2013):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (May 4, 2013): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3045