Ejemplo n.º 1
0
 /**
  * Mark a team (registration) as not at start to be able to get an overview
  * and begin the race start sequence if all other competitors are at start.
  *
  * @Route("/team/{registration}/NotAtStart", name="race_start_nas")
  * @Method("GET")
  * @Security("has_role('ROLE_REGISTRATION')")
  */
 public function notAtStartAction(Request $request, Registration $registration)
 {
     $em = $this->getDoctrine()->getManager();
     $registration->setCancelled();
     $em->persist($registration);
     $em->flush();
     return $this->redirect($request->headers->get('referer'));
 }