Extends
lithium\data\Entity
PHP magic method used when unset() is called on a `Document` instance.
Use case for this would be when you wish to edit a document and remove a field, ie.:
{{{
$doc = Post::find($id);
unset($doc->fieldName);
$doc->save();
}}}
Parameters
- string $name The name of the field to remove.
Returns
voidSource
public function __unset($name) {
unset($this->_updated[$name]);
}