public function beforeSave($options = array()) { parent::beforeSave($options); $this->_calcularImporteNeto(); $this->__proveedorAddOnBeforeSave(); return true; }
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; }