/** * * @param type $entity */ public function remove($entity) { try { $this->manager->remove($entity); $this->manager->flush(); return $entity; } catch (Exception $ex) { return false; } }
/** * * @param Encaminhamentos $entity * @return Encaminhamentos|boolean */ public function remove(Encaminhamentos $entity) { try { $this->manager->remove($entity); $this->manager->flush(); return true; } catch (Exception $ex) { return false; } }
/** * * @param Role $entity * @return Role|boolean */ public function update(Role $entity) { try { $this->manager->merge($entity); $this->manager->flush(); return $entity; } catch (Exception $ex) { return false; } }
/** * * @param type $entity * @return boolean */ public function update($entity) { $this->manager->merge($entity); $this->manager->flush(); return $entity; }