Controller/VideoController.php
public function indexAction($id)
    {
        $video = $this->getDoctrine()->getRepository('VideoGamesRecordsVideoBundle:Video')->find($id);

        return $this->render(
            'VideoGamesRecordsVideoBundle:Video:index.html.twig',
            [
                'video' => $video,
            ]
        );
    }
public function indexAction($id)
    {
        $video = $this->getDoctrine()->getRepository('VideoGamesRecordsVideoBundle:Video')->find($id);

        return $this->render(
            'VideoGamesRecordsVideoBundle:Video:index.html.twig',
            [
                'video' => $video,
            ]
        );
    }
@Route("/{id}", requirements={"id": "[1-9]\d*"}, name="video_games_records_video_index")
@Method({"GET","POST"})
@Cache(smaxage="10")

@param int $id
@return \Symfony\Component\HttpFoundation\Response