[DDC-2256] Code refactorization.
This commit is contained in:
parent
d7f82221d1
commit
935594578a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user