setAsModified() public method

Sets the entity or the column as modified.
public setAsModified ( string $name = null ) : self
$name string
return self
Ejemplo n.º 1
0
 /**
  * @param IEntity          $entity
  * @param PropertyMetadata $propertyMetadata
  */
 public function __construct(IEntity $entity, PropertyMetadata $propertyMetadata)
 {
     $this->setModified = function () use($entity, $propertyMetadata) {
         $entity->setAsModified($propertyMetadata->name);
     };
 }