[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) {
|
if ($this->_em->getUnitOfWork()->getEntityState($value) == UnitOfWork::STATE_MANAGED) {
|
||||||
$idValues = $this->_em->getUnitOfWork()->getEntityIdentifier($value);
|
$idValues = $this->_em->getUnitOfWork()->getEntityIdentifier($value);
|
||||||
} else {
|
} else {
|
||||||
$class = $this->_em->getClassMetadata(get_class($value));
|
$class = $this->_em->getClassMetadata(get_class($value));
|
||||||
$idValues = $class->getIdentifierValues($value);
|
$idValues = $class->getIdentifierValues($value);
|
||||||
}
|
}
|
||||||
$params[$key] = $idValues;
|
$params[$key] = $idValues;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = $this->getSQL();
|
$sql = $this->getSQL();
|
||||||
$hints = $this->getHints();
|
$hints = $this->getHints();
|
||||||
$hints['hydrationMode'] = $this->getHydrationMode();
|
$hints['hydrationMode'] = $this->getHydrationMode();
|
||||||
|
$qcp = $this->getHydrationCacheProfile();
|
||||||
ksort($hints);
|
ksort($hints);
|
||||||
|
|
||||||
$qcp = $this->getHydrationCacheProfile();
|
|
||||||
return $qcp->generateCacheKeys($sql, $params, $hints);
|
return $qcp->generateCacheKeys($sql, $params, $hints);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user