public function createTerceroClient(Gyuser_Model_User $User) { $data = array("client_type" => 6, "first_name" => $User->getFirst_name(), "last_name" => $User->getLast_name(), "DNI" => $User->getDNI(), "CUIL" => $User->getCUIL(), "date_added" => date("Y-m-d")); $id = $this->getDbTable()->insert($data); if (!$id) { throw Exception("Hubo un error al agreagar el cliente de terecero a la base de datos"); } else { return $id; } }