src/Sulu/Component/DocumentManager/DocumentRegistry.php
public function hasDocument($document)
    {
        $oid = $this->getObjectIdentifier($document);

        return isset($this->documentMap[$oid]);
    }
public function hasDocument($document)
    {
        $oid = $this->getObjectIdentifier($document);

        return isset($this->documentMap[$oid]);
    }
public function hasDocument ( $ document ) { $ oid = $ this -> getObjectIdentifier ( $ document ) ; return isset ( $ this -> documentMap [ $ oid ] ) ; }
Return true if the document is managed.

@param object $document

@return bool
Return true if the document is managed .