1
0
mirror of synced 2025-01-29 19:41:45 +03:00

[DDC-1766] More cleanups

This commit is contained in:
Benjamin Eberlei 2012-04-05 00:27:23 +02:00
parent f7496b1482
commit 1095fb39cb

View File

@ -768,19 +768,19 @@ abstract class AbstractQuery
if ($this->_em->getUnitOfWork()->getEntityState($value) == UnitOfWork::STATE_MANAGED) {
$idValues = $this->_em->getUnitOfWork()->getEntityIdentifier($value);
} else {
$class = $this->_em->getClassMetadata(get_class($value));
$class = $this->_em->getClassMetadata(get_class($value));
$idValues = $class->getIdentifierValues($value);
}
$params[$key] = $idValues;
}
}
$sql = $this->getSQL();
$hints = $this->getHints();
$sql = $this->getSQL();
$hints = $this->getHints();
$hints['hydrationMode'] = $this->getHydrationMode();
$qcp = $this->getHydrationCacheProfile();
ksort($hints);
$qcp = $this->getHydrationCacheProfile();
return $qcp->generateCacheKeys($sql, $params, $hints);
}