[DDC-1766] More cleanups
This commit is contained in:
parent
f7496b1482
commit
1095fb39cb
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user