/** * Adds a new 'OR ' predicate to the query. * * @param string|\Closure|null $field Fieldname|callback for group|to return * @param string|null $operator Operator (=, !=, <>, <= etc) * @param mixed|null $value Value to test against * @return $this|array $this on set, array on get */ public function orWhere($field = null, $operator = null, $value = null) { if (!isset($this->whereBuilder)) { $this->whereBuilder = new ConditionBuilder(); } if ($field == null) { return $this->whereBuilder->conditions(); } $this->whereBuilder->orWith($field, $operator, $value); return $this; }