0
내 질문은 이것이다 :교리 쿼리 것을 특징으로 orWhere
orWhere('p.allcenters =?' , '1')
문제는 이것이다 :
$q = Doctrine_Query::create()
->from('plans p')
->whereIn('c.centerid',$centers)
->andWhere('p.agecategory = ?', $ageType)
->andWhere('p.type = ?', '2')
->andWhere('p.active = ?', '1')
->leftJoin('p.plansCenters c');
return $q->execute();
나는 또 하나 개의 행을 추가하는 습관 내가 C 경우이 특징으로 clouse을 제거하기 위해 실 거예요. allcenters =? 1 인 경우 c.allcenters =? 쿼리 부울을 표시하려면 0을 입력하십시오. 만약 내가 wrhite orWhere where where clouse this 3 andWhere가 도움이된다면 도움을 청하십시오.