public function deleteAction() { $group = $this->groupTaskService->find($this->params('id')); if (!$group) { return $this->notFoundAction(); } $this->groupTaskService->remove($group); $this->flashMessenger()->addSuccessMessage('The group has been deleted.'); return $this->redirect()->toRoute('admin/usermanagement/groups'); }
public function hydrate($value, $data = null) { $result = new ArrayCollection(); foreach ($value as $id) { $account = $this->groupTaskService->find($id); if ($account !== null) { $result[] = $account; } } return $result; }
public function groupAction() { $result = $this->groupTaskService->lookup($this->params()->fromQuery('q')); return new JsonModel($result); }