Example #1
0
 public function beforeSave($options = array())
 {
     parent::beforeSave($options);
     $this->_calcularImporteNeto();
     $this->__proveedorAddOnBeforeSave();
     return true;
 }
Example #2
0
 function beforeSave($options = array())
 {
     if (!parent::beforeSave($options)) {
         return false;
     }
     $this->unbindModel(array('hasAndBelongsToMany' => array('Gasto')));
     // list($join) = $this->joinModel($this->hasAndBelongsToMany['Gasto']['with']);
     //            $this->bindModel( array('hasMany' => array($join)) );
     return true;
 }