src/QueryBuilder.php
/**
     * Creates an OR filter subquery
     * 
     * @param string $bool must, should, or must_not
     * @param array $params extra params for or filter
     * @return SubQueryBuilder
     */
Creates an OR filter subquery

@param string $bool must, should, or must_not
@param array $params extra params for or filter
@return SubQueryBuilder
Creates an OR filter subquery @param string $bool must should or must_not @param array $params extra params for or filter @return SubQueryBuilder
public function orWhere($bool = "must", array $params = []) {
        $callback = function(SubQueryBuilder $subQuery) use ($bool, $params) {
            return $this->_endChildSubQuery("or", $subQuery->toArray(), $bool, $params);
        };
        return SubQueryBuilder::make($callback);
    }
public function orWhere ( $ bool = " must " , array $ params = [ ] ) { $ callback = function ( SubQueryBuilder $ subQuery ) use ( $ bool , $ params ) { return $ this -> _endChildSubQuery ( " or " , $ subQuery -> toArray ( ) , $ bool , $ params ) ; } ; return SubQueryBuilder :: make ( $ callback ) ; }
Creates an OR filter subquery
Creates an OR filter subquery