yii\sphinx\MatchExpression::orMatch PHP 메소드

orMatch() 공개 메소드

The new condition and the existing one will be joined using the 'OR' ('|') operator.
또한 보기: match()
또한 보기: andMatch()
public orMatch ( string | array | yii\db\Expression $condition, array $params = [] )
$condition string | array | yii\db\Expression the new WHERE condition. Please refer to [[match()]] on how to specify this parameter.
$params array the parameters (name => value) to be parsed into the query.
    public function orMatch($condition, $params = [])
    {
        if ($this->match === null) {
            $this->match = $condition;
        } else {
            $this->match = ['or', $this->match, $condition];
        }
        $this->addParams($params);
        return $this;
    }