Skip to content


DDC-2256: [GH-554] Fixed ObjectHydrator when namespace alias is given. #2956

doctrinebot opened this Issue · 4 comments

2 participants


Jira issue originally created by user @beberlei:

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

Url: #554


Fixes problem when executing native query:

$rsm = new ResultSetMapping();

$rsm->addEntityResult('DbBundle:Player', 'p');
$rsm->addFieldResult('p', 'id', 'id');
$rsm->addFieldResult('p', 'name', 'name');

$rsm->addJoinedEntityResult('DbBundle:User', 'u', 'p', 'user');
$rsm->addFieldResult('u', 'user_id', 'id');

$em->createNativeQuery('...', $rsm);

Hydrator couldn't find cached metadata, when "joined entity result" class name wasn't fully qualified name (as in the example above).


Comment created by @beberlei:

A related Github Pull-Request [GH-554] was closed


Comment created by @FabioBatSilva:

Merged : dea37ed


Issue was closed with resolution "Fixed"


Comment created by @doctrinebot:

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

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.4 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.