Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2427

Not working orphanRemoval (OneToMany)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:

      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;

      ....

      }

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Dmitry
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: