Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 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
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.