public function getDocumentById($id)
    {
        if (isset($this->identityMap[$id])) {
            return $this->identityMap[$id];
        }

        return false;
    }
public function getDocumentById($id)
    {
        if (isset($this->identityMap[$id])) {
            return $this->identityMap[$id];
        }

        return false;
    }
public function getDocumentById ( $ id ) { if ( isset ( $ this -> identityMap [ $ id ] ) ) { return $ this -> identityMap [ $ id ] ; } return false ; }
Tries to find a document with the given id in the identity map of
this UnitOfWork.

@param string $id            The document id to look for.
@param string $rootClassName The name of the root class of the mapped document hierarchy.

@return object|false Returns the document with the specified id if it exists in
this UnitOfWork, FALSE otherwise.
Tries to find a document with the given id in the identity map of this UnitOfWork .