/** * Retorna o valor antigo do registro antes de realizar a atualização * * @return Log_Model_LogEvento_Mapper */ public function getValueOld() { if (!$this->_dataOld instanceof Log_Model_LogEvento_Mapper) { $this->_dataOld = new Log_Model_LogEvento_Mapper(); $this->_dataOld->setId($this->getId()); $this->_dataOld->retrive(); } return $this->_dataOld; }
protected function _afterSave() { if ($this->_logger) { $_logEvento = new Log_Model_LogEvento_Mapper(); $_logEvento->save($this->getModel()->getTableName(), $this->_action, $this->_data['id']->getValueToDb(), $this->_loggerNote); } }