| 
					
				 | 
			
			
				@@ -21,7 +21,7 @@ class CommentaireManager { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $this->user = $security->getUser(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    private function addCommentaire (Commentaire $commentaire, \App\Entity\Film $film) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public function addCommentaire (Commentaire $commentaire, \App\Entity\Film $film) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $commentaire->setUser($this->user); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $commentaire->setFilm(($film)); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -30,12 +30,12 @@ class CommentaireManager { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $this->em->flush(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    private function editCommentaire(Commentaire $commentaire) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public function editCommentaire(Commentaire $commentaire) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $this->em->flush(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    private function delCommentaire(Commentaire $commentaire) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public function delCommentaire(Commentaire $commentaire) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $commentaire->getFilm()->removeCommentaire($commentaire); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $this->em->remove($commentaire); 
			 |