bonjour tout le monde j'ai problème j'aimerai permettre à l'utilisateur de mon application de voire des rapports sur les interventions effectuées mais selon la date qu'il choisira
voilà pour un début ma requête dans le controller
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
public function rechercherParDateAction() 
	{
		$form = $this->container->get('form.factory')->create(new DateInterventionRechercheForm());
		$request = $this->container->get('request');
 
					$motcle = ''; 
					$motcle = $request->request->get('motcle'); 
					$em = $this->container->get('doctrine')->getEntityManager();        if($motcle != '')    
						{     
							$qb = $em->createQueryBuilder();    
							$qb->select('i') 
							->from('planningBundle:Intervention', 'i')                  
							->leftJoin('i.trancheHoraire', 'T')
							->leftJoin('i.client', 'C')
							->where("i.dateIntervention = ?1")
							->andWhere('i.typeIntervention=?2')
 							->andWhere('i.nomTrancheHoraire=?3')
                         		                    ->setParameter('1',$motcle)
							->setParameter('2', "systeme")
							->setParameter('3', "Matin")
							->getQuery();   
							$query = $qb->getQuery();                          
                                                   $sokomaintervention = $query->getResult();  
						}    
							else
								{ 
									$sokomaintervention = $em->getRepository('planningBundle:Intervention')->findAll();   
									}
 
 
return $this->container->get('templating')->renderResponse('planningBundle:Intervention:fiche.html.twig', array('sokomaintervention' => $sokomaintervention, 'form' => $form->createView()));  
}
mais il me renvoi tout les interventions sans trier ni par tranche horaire ni par type d'intervention
voila l'image

Nom : inter.png
Affichages : 292
Taille : 110,8 Ko
merci d'avance pour votre aide