/** * Reset a team (registration) after marking it as "not at start", so that a new registration is possible. * * @see notAtStartAction * * @Route("/team/{registration}/resetNas", name="race_start_reset") * @Method("GET") * @Security("has_role('ROLE_REGISTRATION')") */ public function resetNotAtStart(Request $request, Registration $registration) { $em = $this->getDoctrine()->getManager(); $registration->undoCancelled(); $em->persist($registration); $em->flush(); return $this->redirect($request->headers->get('referer')); }