Example #1
0
 /**
  * Retorna o valor antigo do registro antes de realizar a atualização
  *
  * @return Vendas_Model_LogPedido_Mapper
  */
 public function getValueOld()
 {
     if (!$this->_dataOld instanceof Vendas_Model_LogPedido_Mapper) {
         $this->_dataOld = new Vendas_Model_LogPedido_Mapper();
         $this->_dataOld->setId($this->getId());
         $this->_dataOld->retrive();
     }
     return $this->_dataOld;
 }