public function save(Gyuser_Model_Admin $obj) { $data = array('tiempo_ac_capital' => $obj->getTiempo_ac_capital(), 'tiempo_ac_interior' => $obj->getTiempo_ac_interior(), 'tiempo_ac_sistema' => $obj->getTiempo_ac_sistema(), 'gastos_denuncia' => $obj->getGastos_denuncia(), 'gastos_rechazo' => $obj->getGastos_rechazo(), 'gastos_general' => $obj->getGastos_general(), 'gastos_interior' => $obj->getGastos_interior(), 'impuesto_al_cheque' => $obj->getImpuesto_al_cheque(), 'crm_operation_notify_span' => $obj->getCrm_operation_notify_span()); if (null === ($id = $obj->getId())) { unset($data['id']); $id = $this->getDbTable()->insert($data); return $id; } else { unset($data['user_id']); $id = $this->getDbTable()->update($data, array('id = ?' => $id)); return $id; } }