Doctrine\ORM\UnitOfWork::setOriginalEntityProperty PHP Method

setOriginalEntityProperty() public method

INTERNAL: Sets a property value of the original data array of an entity.
public setOriginalEntityProperty ( string $oid, string $property, mixed $value )
$oid string
$property string
$value mixed
    public function setOriginalEntityProperty($oid, $property, $value)
    {
        $this->originalEntityData[$oid][$property] = $value;
    }

Usage Example

Example #1
0
 /**
  * Sets a property value of the original data array of an object.
  *
  * @param \Doctrine\ORM\UnitOfWork $uow
  * @param string $oid
  * @param string $property
  * @param mixed $value
  * @return null
  */
 public function setOriginalObjectProperty(UnitOfWork $uow, $oid, $property, $value)
 {
     $uow->setOriginalEntityProperty($oid, $property, $value);
 }