public function __unset($key) { $column = $this->formatColumnName($key); if (parent::__isset($column) || !ObjectMixin::has($this, $key)) { parent::__unset($column); } else { ObjectMixin::remove($this, $key); } }
/** * @param $key * @return bool */ public function __isset($key) { return ObjectMixin::has($this, $key) || $this->activeRow->__isset($key); }