| 
					
				 | 
			
			
				@@ -4,6 +4,7 @@ namespace AppBundle\Controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 use AppBundle\Entity\Commentaire; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 use AppBundle\Entity\Genre; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+use AppBundle\Entity\Realisateur; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 use Symfony\Bundle\FrameworkBundle\Controller\Controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 use Symfony\Component\HttpFoundation\JsonResponse; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -50,6 +51,20 @@ class VideothequeController extends Controller 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         )); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @Route("/liste-by_real/{id}", name="videotheque_listeparreal") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public function  listeParRealisateurAction(Realisateur $realisateur) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $em = $this->getDoctrine()->getManager(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $films = $em->getRepository('AppBundle:Film')->findFilmWithReal(array($realisateur->getNomComplet())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return $this->render('@App/videotheque/liste.html.twig', array( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            'listeFilms'    => $films, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            'titre'         => 'Films par réalisateur : '.$realisateur->getNomComplet() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        )); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 * @Route("/ajouter", name="videotheque_ajouter") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 */ 
			 |