public function andOnCondition($condition, $params = [])
    {
        if ($this->on === null) {
            $this->on = $condition;
        } else {
            $this->on = ['and', $this->on, $condition];
        }
        $this->addParams($params);
        return $this;
    }
public function andOnCondition($condition, $params = [])
    {
        if ($this->on === null) {
            $this->on = $condition;
        } else {
            $this->on = ['and', $this->on, $condition];
        }
        $this->addParams($params);
        return $this;
    }
public function andOnCondition ( $ condition , $ params = [ ] ) { if ( $ this -> on === null ) { $ this -> on = $ condition ; } else { $ this -> on = [ 'and' , $ this -> on , $ condition ] ; } $ this -> addParams ( $ params ) ; return $ this ; }
Adds an additional ON condition to the existing one.
The new condition and the existing one will be joined using the 'AND' operator.
@param string|array $condition the new ON condition. Please refer to [[where()]]
on how to specify this parameter.
@param array $params the parameters (name => value) to be bound to the query.
@return $this the query object itself
@see onCondition()
@see orOnCondition()
Adds an additional ON condition to the existing one . The new condition and the existing one will be joined using the AND operator .