YII2 Multilple y Filterwhere

    $query->andFilterWhere([
        'or',
        ['like', 'ap.fiscal_name', $this->relatedName],
        ['like', 'ad.fiscal_name', $this->relatedName],
    ]);
Panicky Panther