src/Sulu/Component/DocumentManager/DocumentRegistry.php
public function deregisterDocument($document)
    {
        $oid = $this->getObjectIdentifier($document);
        $this->assertDocumentExists($document);
        $nodeIdentifier = $this->documentNodeMap[$oid];
        $locale = $this->documentLocaleMap[$oid];

        unset($this->nodeMap[$nodeIdentifier]);
        unset($this->nodeDocumentMap[$this->getNodeLocaleKey($nodeIdentifier, $locale)]);
        unset($this->documentMap[$oid]);
        unset($this->documentNodeMap[$oid]);
        unset($this->documentLocaleMap[$oid]);
        unset($this->hydrationState[$oid]);
    }
public function deregisterDocument($document)
    {
        $oid = $this->getObjectIdentifier($document);
        $this->assertDocumentExists($document);
        $nodeIdentifier = $this->documentNodeMap[$oid];
        $locale = $this->documentLocaleMap[$oid];

        unset($this->nodeMap[$nodeIdentifier]);
        unset($this->nodeDocumentMap[$this->getNodeLocaleKey($nodeIdentifier, $locale)]);
        unset($this->documentMap[$oid]);
        unset($this->documentNodeMap[$oid]);
        unset($this->documentLocaleMap[$oid]);
        unset($this->hydrationState[$oid]);
    }
public function deregisterDocument ( $ document ) { $ oid = $ this -> getObjectIdentifier ( $ document ) ; $ this -> assertDocumentExists ( $ document ) ; $ nodeIdentifier = $ this -> documentNodeMap [ $ oid ] ; $ locale = $ this -> documentLocaleMap [ $ oid ] ; unset ( $ this -> nodeMap [ $ nodeIdentifier ] ) ; unset ( $ this -> nodeDocumentMap [ $ this -> getNodeLocaleKey ( $ nodeIdentifier , $ locale ) ] ) ; unset ( $ this -> documentMap [ $ oid ] ) ; unset ( $ this -> documentNodeMap [ $ oid ] ) ; unset ( $ this -> documentLocaleMap [ $ oid ] ) ; unset ( $ this -> hydrationState [ $ oid ] ) ; }
Remove all references to the given document and its
associated node.

@param object $document
Remove all references to the given document and its associated node .