/** * Extension of the Abstract Record to save the history. * * @return void */ public function save() { $result = true; if ($this->id > 0) { $this->_history->saveFields($this, 'edit'); $result = parent::save(); } else { $result = parent::save(); $this->_history->saveFields($this, 'add'); } $this->_search->indexObjectItem($this); return $result; }