Skip to content


DDC-2933: [GH-917] DDC-2931 #3694

doctrinebot opened this Issue · 4 comments

2 participants


Jira issue originally created by user @doctrinebot:

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

Url: #917


This is a hotfix for DDC-2931 ( #916 )

After some debugging, I found that the issue came from UnitOfWork#createEntity with #406 (DCOM-96).

When initializing the proxy for $first (during the DDC2931User#getRank() call), the ORM attempts to fetch also $second again via ObjectHydrator#getEntity, but the hintdoctrine.refresh.entitycontains the initialized proxy, while the identifier passed down is the identifier of$second` (not a proxy).

UnitOfWork#createQuery does some comparisons and detects the fact that the two objects don't correspond, and therefore marks the entity as "to be detached" (since it thinks that the one in the "refresh" hint is the correct entity to load).


Comment created by @doctrinebot:

A related Github Pull-Request [GH-916] was closed:


Comment created by @doctrinebot:

A related Github Pull-Request [GH-917] was closed:


Issue was closed with resolution "Fixed"

@Ocramius Ocramius was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.4.2 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.