Example #1
0
 public function orWhere(...$expressions)
 {
     $currentSet = $this->_getCurrentSet();
     $newSet = $this->_getNewSet($expressions);
     $finalSet = new OrPredicateSet();
     $finalSet->addPredicate($currentSet);
     $finalSet->addPredicate($newSet);
     /**
      * @var $this  IStatement
      * @var $where WhereClause
      */
     $where = $this->getClause('WHERE');
     $where->clearPredicates();
     $where->addPredicate($finalSet);
     $this->addClause($where);
     return $this;
 }