Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user @doctrinebot:

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

Url: #917

Message:

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).

@doctrinebot

Comment created by @doctrinebot:

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

@doctrinebot

Comment created by @doctrinebot:

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

@doctrinebot

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.