diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index cbf9e08be..609c191eb 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -1566,11 +1566,9 @@ class UnitOfWork implements PropertyChangedListener { $stringIdHash = (string) $idHash; - if (isset($this->identityMap[$rootClassName][$stringIdHash])) { - return $this->identityMap[$rootClassName][$stringIdHash]; - } - - return false; + return isset($this->identityMap[$rootClassName][$stringIdHash]) + ? $this->identityMap[$rootClassName][$stringIdHash] + : false; } /**