添加逻辑 OR 查询条件
@param mixed $field
@param string $opt
@param string|array $value
@return $this
340561
public function whereOr($field, $opt=null, $value=null) {
        if ( $field instanceof \Closure ) {
            $this->sqlBuilder->sqlAppend(" OR (");
            $this->sqlBuilder->enterClosure();
            call_user_func($field);
            $this->sqlBuilder->addWhere(") ");
        } else {
            $this->sqlBuilder->addWhere($field, $opt, $value, 'OR');
        }
        return $this;
    }
465092
private function addOperator($operator, $field, $value) {
		$this->is($field, array('$' . $operator => $value));
		
		return $this;
	}
1320232
public function like($field_path, $value, $or_union_name = null)
    {
        $newUnit = new SpecificationLike($this->type, $field_path, $value);
        $this->specificationSet->addUnit($newUnit, $or_union_name);

        return $this;
    }
5792
public function filterGte(string $field, $value): self
    {
        $this->filters[] = new IndexQueryFilter($field, IndexQueryFilterOperator::GREATER_THAN_OR_EQUAL_TO(), $value);
        return $this;
    }
646648
public function xorWhere($field, $op = null, $value = null) {
        return $this->_modifyPredicate($this->_where, Predicate::MAYBE, $field, $op, $value);
    }
914078
public function addField($field, $value=null) {
        $this->fields[] = $field;
        if ($value != null) $this->set($field, $value);
    }
172856
public function or_where_in($field, array $values, $not=FALSE){
        if($this->where != ''){$this->where.='OR ';}
        $this->in($field, $values, $not);
    }
377749
public function prefilled($field, $value)
    {
        $this->fields[ $field ] = [
            'type'  => self::TYPE_PREFILLED_VALUE,
            'value' => $value
        ];

        return $this;
    }
158096
public function addToSet(string $field, $value)
    {
        $this->update();
        $this->mongoDbUpdate['$addToSet'][$field] = $value;

        return $this;
    }
531173
public function defaultValue($field, $value)
    {
        Arguments::define(Boa::string(), Boa::any())->check($field, $value);

        $this->defaults = $this->defaults->insert($field, $value);

        return $this;
    }
180870
public function addPostField($field, $value) {
        if (is_null($this->postData)) {
            $this->postData = array();
        }

        if (is_array($this->postData)) {
            $this->postData[$field] = (string) $value;
            return $this;
        } else {
            throw new LogicException('cannot set field for non array');
        }
    }
778298
public function where($field, $op, $value)
    {
        $this->pending['where'][] = array(
            'type'  => 'and',
            'field' => $field,
            'op'    => $op,
            'value' => $value,
        );

        return $this;
    }
356982
private function addOrWhere($field, $operator, $value = null)
    {
        $this->orWheres[] = [
            'field' => $field,
            'operator' => $this->getOperator($operator),
            'value' => $this->connection->escape($value),
        ];
    }
378911
public function addFilter($field, $value, $operator = null)
    {
        $this->filters[$field] = $value;

        return $this;
    }
342058
protected function addCriteria( $field, $operator, $value ) {

		$field = trim($field);

		if( !isset($this->criteria[$field]) )
			$this->criteria[$field] = [];

		$this->criteria[$field][$operator] = $value;

		return $this;

	}
696102
public function data($field, $value = null)
    {
        if (is_array($field)) {
            $this->options['data'] = isset($this->options['data']) ? array_merge($this->options['data'], $field) : $field;
        } else {
            $this->options['data'][$field] = $value;
        }

        return $this;
    }
1337769
public function setOptions($option, $value = null) 
	{
		Argument::i()
			->test(1, 'array', 'string')
			->test(2, 'scalar', 'null');
		
		if(is_array($option)) {
			$this->options = $option;
			return $this;
		}
		
		$this->options[$option] = $value;
		return $this;
	}