Doctrine\ODM\MongoDB\UnitOfWork::clearDocumentChangeSet PHP Method

clearDocumentChangeSet() public method

INTERNAL: Clears the property changeset of the document with the given OID.
public clearDocumentChangeSet ( string $oid )
$oid string The document's OID.
    public function clearDocumentChangeSet($oid)
    {
        $this->documentChangeSets[$oid] = array();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Clears the property changeset of the object with the given OID.
  *
  * @param UnitOfWork $uow
  * @param string $oid The object's OID.
  */
 public function clearObjectChangeSet(UnitOfWork $uow, $oid)
 {
     $uow->clearDocumentChangeSet($oid);
 }
UnitOfWork