Implements the magic method for unset.
public function __unset($name) { if ($this ->getPropertyDefinition($name)) { $this ->get($name) ->setValue(NULL); } else { unset($this->values[$name]); } }