Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2363

Duplicated record with orphanRemoval and proxy

    Details

    • Type: Bug Bug
    • Status: Awaiting Feedback
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Environment:
      Tested both Mac OS X and Ubuntu

      Description

      There is a problem that causes duplicate records are created when EntityManager has to remove an entity due to orphanRemoval. The problem occurs only with a double flush and referred object is a proxy.

      I'm trying to submit a pull request for this ticket. Please, stand by.

        Issue Links

          Activity

          Manuele Menozzi created issue -
          Hide
          Marco Pivetta added a comment -

          Hey Manuele Menozzi, do you remember if this has been fixed? Are you still able to reproduce the problem?

          Show
          Marco Pivetta added a comment - Hey Manuele Menozzi , do you remember if this has been fixed? Are you still able to reproduce the problem?
          Marco Pivetta made changes -
          Field Original Value New Value
          Status Open [ 1 ] Awaiting Feedback [ 10000 ]
          Hide
          Manuele Menozzi added a comment -

          Hi Marco,
          I made a PR (https://github.com/doctrine/doctrine2/pull/625) with an automated test that reproduce the problem. I just ran this test over latest version of doctrine2 and it's still failed. So, the problem has not be fixed and I (or you) can reproduce it easily.

          Let me know if I can help you somehow.

          Show
          Manuele Menozzi added a comment - Hi Marco, I made a PR ( https://github.com/doctrine/doctrine2/pull/625 ) with an automated test that reproduce the problem. I just ran this test over latest version of doctrine2 and it's still failed. So, the problem has not be fixed and I (or you) can reproduce it easily. Let me know if I can help you somehow.
          Hide
          Marco Pivetta added a comment -

          Thanks, didn't see it!

          Show
          Marco Pivetta added a comment - Thanks, didn't see it!
          Marco Pivetta made changes -
          Link This issue is duplicated by DDC-2364 [ DDC-2364 ]

          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-2363, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

            People

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

              Dates

              • Created:
                Updated: