add string casting to id hashes
This commit is contained in:
parent
41e873bd72
commit
2bdc1142fe
@ -1573,6 +1573,10 @@ class UnitOfWork implements PropertyChangedListener
|
||||
*/
|
||||
public function tryGetByIdHash($idHash, $rootClassName)
|
||||
{
|
||||
if (! is_string($idHash)) {
|
||||
$idHash = (string) $idHash;
|
||||
}
|
||||
|
||||
if (isset($this->identityMap[$rootClassName][$idHash])) {
|
||||
return $this->identityMap[$rootClassName][$idHash];
|
||||
}
|
||||
@ -2938,6 +2942,10 @@ class UnitOfWork implements PropertyChangedListener
|
||||
{
|
||||
$idHash = implode(' ', (array) $id);
|
||||
|
||||
if (! is_string($idHash)) {
|
||||
$idHash = (string) $idHash;
|
||||
}
|
||||
|
||||
if (isset($this->identityMap[$rootClassName][$idHash])) {
|
||||
return $this->identityMap[$rootClassName][$idHash];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user