Doctrine\ORM\UnitOfWork::tryGetByIdHash PHP Method

tryGetByIdHash() public method

INTERNAL: Tries to get an entity by its identifier hash. If no entity is found for the given hash, FALSE is returned.
public tryGetByIdHash ( string $idHash, string $rootClassName ) : mixed
$idHash string
$rootClassName string
return mixed The found entity or FALSE.
    public function tryGetByIdHash($idHash, $rootClassName)
    {
        return isset($this->identityMap[$rootClassName][$idHash]) ?
                $this->identityMap[$rootClassName][$idHash] : false;
    }