[DDC-2427] Not working orphanRemoval (OneToMany) Created: 03/May/13  Updated: 04/May/13  Resolved: 04/May/13

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: 2.3
Fix Version/s: None
Security Level: All

Type: Bug Priority: Major
Reporter: Dmitry Assignee: Benjamin Eberlei
Resolution: Invalid Votes: 0
Labels: orm

Attachments: File DDC2427Test.php    


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;



Comment by Benjamin Eberlei [ 04/May/13 ]

Works for me, see code attached

Comment by Benjamin Eberlei [ 04/May/13 ]

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

Generated at Sat Oct 10 08:35:08 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.