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

Closed
opened 2026-01-22 14:05:26 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 24, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

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

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

Message:

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

Originally created by @doctrinebot on GitHub (Jan 24, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: This issue is created automatically through a Github pull request on behalf of beregond: Url: https://github.com/doctrine/doctrine2/pull/554 Message: Fixes problem when executing native query: ``` php $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).
admin added the Bug label 2026-01-22 14:05:26 +01:00
admin closed this issue 2026-01-22 14:05:27 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 2, 2013):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Feb 2, 2013): Comment created by @beberlei: A related Github Pull-Request [GH-554] was closed https://github.com/doctrine/doctrine2/pull/554
Author
Owner

@doctrinebot commented on GitHub (Feb 5, 2013):

Comment created by @FabioBatSilva:

Merged : dea37ed9e8

@doctrinebot commented on GitHub (Feb 5, 2013): Comment created by @FabioBatSilva: Merged : https://github.com/doctrine/doctrine2/commit/dea37ed9e84922f37ef21740671e5e29c94454d3
Author
Owner

@doctrinebot commented on GitHub (Feb 5, 2013):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 5, 2013): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Jun 26, 2014):

Comment created by @doctrinebot:

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

@doctrinebot commented on GitHub (Jun 26, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-554] was closed: https://github.com/doctrine/dbal/pull/554
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2839