/**
  * Add the where statement for this filter to the query.
  *
  * @param ProxyQuery $proxy
  */
 protected function getWhere(ProxyQuery $proxy)
 {
     $queryBuilder = $proxy->getQueryBuilder();
     if ($this->getCondition() == self::CONDITION_OR) {
         return $queryBuilder->orWhere();
     }
     return $queryBuilder->andWhere();
 }
 public function testConstructor()
 {
     $this->assertInstanceOf('Doctrine\\ODM\\PHPCR\\Query\\Builder\\QueryBuilder', $this->pq->getQueryBuilder());
 }
 public function testConstructor()
 {
     $pq = new ProxyQuery($this->qf, $this->qb);
     $this->assertInstanceOf('PHPCR\\Util\\QOM\\QueryBuilder', $pq->getQueryBuilder());
     $this->assertInstanceOf('PHPCR\\Query\\QOM\\QueryObjectModelFactoryInterface', $pq->getQueryObjectModelFactory());
 }