Doctrine\ODM\PHPCR\UnitOfWork::unregisterDocument PHP Method

unregisterDocument() private method

Removes a document from the identity map. This effectively detaches the document from the persistence management of Doctrine.
private unregisterDocument ( object $document )
$document object
    private function unregisterDocument($document)
    {
        $oid = spl_object_hash($document);
        if (isset($this->documentIds[$oid])) {
            unset($this->identityMap[$this->documentIds[$oid]]);
        }
        unset($this->scheduledRemovals[$oid], $this->scheduledUpdates[$oid], $this->scheduledMoves[$oid], $this->scheduledReorders[$oid], $this->scheduledInserts[$oid], $this->originalData[$oid], $this->originalTranslatedData[$oid], $this->documentIds[$oid], $this->documentState[$oid], $this->documentTranslations[$oid], $this->documentLocales[$oid], $this->nonMappedData[$oid], $this->documentChangesets[$oid], $this->documentHistory[$oid], $this->documentVersion[$oid]);
        $this->changesetComputed = array_diff($this->changesetComputed, array($oid));
    }
UnitOfWork