remove excess check
This commit is contained in:
parent
cd11723e63
commit
2ee56a595b
@ -1582,17 +1582,13 @@ class UnitOfWork implements PropertyChangedListener
|
||||
{
|
||||
$oid = spl_object_hash($entity);
|
||||
|
||||
if ( ! isset($this->entityIdentifiers[$oid])) {
|
||||
if (empty($this->entityIdentifiers[$oid])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$classMetadata = $this->em->getClassMetadata(get_class($entity));
|
||||
$idHash = implode(' ', $this->entityIdentifiers[$oid]);
|
||||
|
||||
if ($idHash === '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return isset($this->identityMap[$classMetadata->rootEntityName][$idHash]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user