Doctrine\OXM\UnitOfWork::tryGetById PHP Method

tryGetById() public method

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