/** * @inheritdoc */ public function __unset($name) { if (array_key_exists($name, $this->_attributes)) { unset($this->_attributes[$name]); } else { parent::__unset($name); } }
/** * @inheritdoc */ public function __unset($name) { if (array_key_exists($name, $this->data)) { unset($this->data[$name]); } else { parent::__unset($name); } }