public function move($change, $where = '') { // Check the table activation status first if (!$this->active) { // Activate it with a default value $this->setType(''); } return parent::move($change, $where); }