Doctrine\ODM\CouchDB\UnitOfWork::removeFromIdentityMap PHP Метод

removeFromIdentityMap() публичный Метод

INTERNAL: Removes an document from the identity map. This effectively detaches the document from the persistence management of Doctrine.
public removeFromIdentityMap ( object $document ) : boolean
$document object
Результат boolean
    public function removeFromIdentityMap($document)
    {
        $oid = spl_object_hash($document);
        if (isset($this->identityMap[$this->documentIdentifiers[$oid]])) {
            unset($this->identityMap[$this->documentIdentifiers[$oid]], $this->documentIdentifiers[$oid], $this->documentRevisions[$oid], $this->documentState[$oid]);
            return true;
        }
        return false;
    }