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 '); } }
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; }
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; }