[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    

 Description   

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;

....

}



 Comments   
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 Thu Jul 31 13:40:39 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.