Beispiel #1
0
 private function preparePositionForm($name)
 {
     $form = new PositionForm($this, $name, $this->getTranslator());
     $roles = $this->roleService->getSelectRoles();
     $users = $this->userService->getSelectUsers();
     $groups = $this->sportGroupService->getSelectAllSportGroups();
     $form->setSportGroups($groups);
     $form->setRoles($roles);
     $form->setUsers($users);
     return $form;
 }