Example #1
0
 /**
  * Finds and displays a Athlete entity.
  * 
  * @Security("is_granted('VIEW', athlete)")
  *
  * @Route("/{slug}", name="athlete_show")
  * @Method("GET")
  * @Template()
  */
 public function showAction(Athlete $athlete)
 {
     $deleteForm = $this->createDeleteForm($athlete->getId());
     return array('athlete' => $athlete, 'delete_form' => $deleteForm->createView());
 }