/** * Add a "or where" filter. * * @param string $field * @param string $operation * @param string $value * * @return $this */ public function orWhere($field, $operation, $value = null, $alias = self::DEFAULT_TABLE_ALIAS) { if (strpos($field, '.') > 0) { $newValues = $this->whereFieldJoin($field, $value, $operation); $alias = $newValues['alias']; $field = $newValues['field']; } $this->queryBuilder->orWhere($this->makeExpression($field, $operation, $value, $alias)); return $this; }
/** * @param $predicates */ public function orWhere($predicates) { $this->_query->orWhere($predicates); $this->_filter['orWhere'][] = $predicates; }