Doctrine\ORM\UnitOfWork::clearEntityChangeSet PHP Method

clearEntityChangeSet() public method

INTERNAL: Clears the property changeset of the entity with the given OID.
public clearEntityChangeSet ( string $oid )
$oid string The entity's OID.
    public function clearEntityChangeSet($oid)
    {
        unset($this->entityChangeSets[$oid]);
    }

Usage Example

Example #1
0
 /**
  * Clears the property changeset of the object with the given OID.
  *
  * @param \Doctrine\ORM\UnitOfWork $uow
  * @param string $oid The object's OID.
  */
 public function clearObjectChangeSet(UnitOfWork $uow, $oid)
 {
     $uow->clearEntityChangeSet($oid);
 }