lithium\data\Entity::__set()

public method

PHP magic method used when setting properties on the Entity instance, i.e. $entity->title = 'Lorem Ipsum'.

Parameters

  • string $name

    The name of the field/property to write to, i.e. title in the above example.

  • mixed $value

    The value to write, i.e. 'Lorem Ipsum'.

Returns

void

Source

	public function __set($name, $value) {
		unset($this->_increment[$name]);
		$this->_updated[$name] = $value;
	}