yii\db\ActiveQuery::orOnCondition PHP Method

orOnCondition() public method

The new condition and the existing one will be joined using the 'OR' operator.
See also: onCondition()
See also: andOnCondition()
public orOnCondition ( string | array $condition, array $params = [] )
$condition string | array the new ON condition. Please refer to [[where()]] on how to specify this parameter.
$params array the parameters (name => value) to be bound to the query.
    public function orOnCondition($condition, $params = [])
    {
        if ($this->on === null) {
            $this->on = $condition;
        } else {
            $this->on = ['or', $this->on, $condition];
        }
        $this->addParams($params);
        return $this;
    }