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, [$oid]);
    }
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, [$oid]);
    }
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 , [ $ oid ] ) ; }
Removes a document from the identity map. This effectively detaches the
document from the persistence management of Doctrine.

@param object $document
Removes a document from the identity map . This effectively detaches the document from the persistence management of Doctrine .