public function __unset($column) { $this->load_prefs(); if (array_key_exists($column, $this->_prefs)) { unset($this->_prefs); } else { parent::__unset($column); } }
/** * Magic unset method, allows unset($model->property) * * @param string $property * * @return void */ public function __unset($property) { $this->orm->__unset($property); }