Пример #1
0
 public function update(\Entity\Modalidade $modalidade)
 {
     try {
         $this->em->merge($modalidade);
     } catch (Exception $ex) {
         $this->CI->log->write_log('error', $ex->getMessage() . ' - modalidade_dao::update ');
     }
 }
Пример #2
0
 public function update(Entity\Categoria $categoria)
 {
     try {
         $this->em->merge($categoria);
         return true;
     } catch (Exception $ex) {
         $this->CI->log->write_log('error', $ex->getMessage() . ' - categoria_dao::update ');
     }
     return false;
 }
Пример #3
0
 public function update($curso_model)
 {
     try {
         $this->em->merge($curso_model);
         $this->em->flush();
         return true;
     } catch (Exception $ex) {
         $this->CI->log->write_log('error', $ex->getMessage() . ' - curso_dao::update ');
     }
     return false;
 }