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

        Dmitry created issue -
        Hide
        Benjamin Eberlei added a comment -

        Works for me, see code attached

        Show
        Benjamin Eberlei added a comment - Works for me, see code attached
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Attachment DDC2427Test.php [ 11525 ]
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - Please provide a failing testcase if you wan't to reopen the ticket.
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-2427, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: