lithium\data\entity\Document::__unset PHP Метод

__unset() публичный Метод

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();
public __unset ( string $name ) : void
$name string The name of the field to remove.
Результат void
    public function __unset($name)
    {
        $parts = explode('.', $name, 2);
        if (isset($parts[1])) {
            unset($this->{$parts[0]}[$parts[1]]);
        } else {
            unset($this->_updated[$name]);
            $this->_removed[$name] = true;
        }
    }