Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3180

[GH-1065] [DDC-3179] EntityNotFoundException on the postRemove event if the entity is a proxy

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of egeloen:

      Url: https://github.com/doctrine/doctrine2/pull/1065

      Message:

      This PR tries to fix DDC-3179(http://www.doctrine-project.org/jira/browse/DDC-3179).

      I'm not sure if it is the way to go as this PR has a big drawback: it *always* loads proxies which needs to be removed regardless if there is an postRemove event for it. Anyway, there is no way to determine if there is an event for a specific entity in a lifecycle callback context.

        Issue Links

          Activity

          Hide
          Doctrine Bot added a comment -

          A related Github Pull-Request [GH-1065] was closed:
          https://github.com/doctrine/doctrine2/pull/1065

          Show
          Doctrine Bot added a comment - A related Github Pull-Request [GH-1065] was closed: https://github.com/doctrine/doctrine2/pull/1065
          Hide
          Marco Pivetta added a comment -
          Show
          Marco Pivetta added a comment - Documented as known limitation, merged at https://github.com/doctrine/doctrine2/commit/9e36a95a978ac2cf8297b430368f8473c6ab67fb

            People

            • Assignee:
              Marco Pivetta
              Reporter:
              Doctrine Bot
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: