Bonjour,
comment on fais un LIKE ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 $cp_auto = $this->getDoctrine() ->getRepository('AcmeProgueBundle:CpAutocomplete') ->createQueryBuilder('c') ->select('c.cp, c.ville') ->where('c.cp LIKE %:codePostal%') ->setParameter('codePostal', $request->get("codePostal")) ->andWhere('c.codepays=:pays') ->setParameter('pays', $request->get("pays")) ->setMaxResults($request->get("maxRows")) ->getQuery();
j'ai cette erreur :
j'ai beau chercher sur google mais je ne trouve pas de réponse.[Syntax Error] line 0, col 93: Error: Expected end of string, got '%'
Partager