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

Closed
doctrinebot opened this Issue May 3, 2013 · 3 comments

2 participants

@doctrinebot

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;

....

}

@doctrinebot

Comment created by @beberlei:

Works for me, see code attached

@doctrinebot

Comment created by @beberlei:

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

@doctrinebot

Issue was closed with resolution "Invalid"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment