/**
  * @param string $whereOperator
  *
  * @return Where
  */
 public function where($whereOperator = 'AND')
 {
     if (!isset($this->where)) {
         $this->where = $this->filter();
     }
     $this->where->conjunction($whereOperator);
     return $this->where;
 }
示例#2
0
 /**
  * @test
  */
 public function itShouldThrowExceptionOnUnknownConjunction()
 {
     $this->setExpectedException($this->queryException);
     $this->where->conjunction('NOT_VALID_CONJUNCTION');
 }