1
0
mirror of synced 2025-01-18 06:21:40 +03:00

[DDC-2256] Code refactorization.

This commit is contained in:
Szczepan Cieślik 2013-01-25 13:15:14 +01:00
parent d7f82221d1
commit 935594578a

View File

@ -559,15 +559,10 @@ class ResultSetMapping
$translate = function (&$alias) use ($em, $fqcn)
{
if (strpos($alias, ':') !== false && !isset($fqcn[$alias])) {
if ($metadata = $em->getClassMetadata($alias)) {
$fqcn[$alias] = $metadata->name;
}
}
if (isset($fqcn[$alias])) {
$alias = $fqcn[$alias];
if ( ! isset($fqcn[$alias])) {
$fqcn[$alias] = $em->getClassMetadata($alias)->getName();
}
$alias = $fqcn[$alias];
};
array_walk($this->aliasMap, $translate);