WHERE a = 1 AND (b = 1 Or b = 2) AND (c = 1 OR c = 2)
How can I do this in the Doctrine?
$q->where("a = 1"); $q->andWhere("b = 1") $q->orWhere("b = 2") $q->andWhere("c = 1") $q->orWhere("d = 2")
this is wrong ... It should be:
$q->where("a = 1"); $q->andWhere("b = 1") $q->orWhere("b = 2") $q->andWhere("c = 1") $q->orWhere("d = 2")
but how can i do this? Propel has a getNewCriterion function, and Doctrine ...?
sql php doctrine
Paul Attuck Feb 01 '12 at 11:37 2012-02-01 11:37
source share