Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-2231

[GH-546] The EntityManager was not injected in uninitialized proxys which are Obj...

    Details

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

      Description

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

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

      Message:

      ...ectManagerAware.

      I ran into that problem while I had two objects in the identitymap while hydrating a collection: one was new a "real" entity and the other one was an uninitialized proxy. For "real" entities the em is injected in line 2427, for new entities it is injected in 2436->2364, but for proxies this is missing. According to the comment "inject ObjectManager into just loaded proxies." the code in line 2427 should do this, but in fact it is just used if it is a "real" entity or an already initialized proxy. Moving the injection to outside of the condition in line 2411 (if the entity is an unitialized proxy) solves this.

        Activity

        beberlei Benjamin Eberlei created issue -
        Hide
        beberlei Benjamin Eberlei added a comment -

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

        Show
        beberlei Benjamin Eberlei added a comment - A related Github Pull-Request [GH-546] was closed https://github.com/doctrine/doctrine2/pull/546
        beberlei Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3.3 [ 10329 ]
        Resolution Fixed [ 1 ]
        Hide
        doctrinebot Doctrine Bot added a comment -

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

        Show
        doctrinebot Doctrine Bot added a comment - A related Github Pull-Request [GH-546] was closed: https://github.com/doctrine/dbal/pull/546

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: