mardi 24 juin 2014

Doctrine QueryBuilder "andWhere" query


Vote count:

0




I am using this code:



$queryBuilder
->add('select', 'd.type')
->add('from', 'Entities:TypeDetail d')
->add('where', 'IDENTITY(d.typeName) = ' . $typeName->getId())
->add('andWhere', 'd.dateValue > ' . $dates['start'])
->add('andWhere', 'd.dateValue < ' . $dates['end']);


But I get this error: Notice: Undefined index: andWhere in...


I figure "andWhere" is not the correct name to use, but everywhere I read online suggests it is. But that is using the form ->andWhere(), not using ->add() like I am.


What am I doing wrong? Thanks



asked 1 min ago

b85411

161





Aucun commentaire:

Enregistrer un commentaire