/**
  * @Route("/playListRemote/{id}/{userName}", name="_playListRemote", requirements={"id" = "\d+","userName" = ".+"})
  * @Template()
  */
 public function playListRemoteAction($id, $userName)
 {
     $em = $this->getDoctrine()->getManager();
     $playlistQuery = new PlaylistQuery($em);
     $playList = $playlistQuery->findPlayListByIdAndUserName($id, $userName)->getQuery()->getSingleResult(AbstractQuery::HYDRATE_ARRAY);
     return new Response(json_encode($playList), 201, ['Access-Control-Allow-Origin' => '*', 'Content-Type' => 'application/json']);
 }