query->andFilterWhere( [ 'like', 'variant_option_group_excl_lang.title', $this->title, ] ); $dataProvider->sort = [ 'attributes' => [ 'id', 'title' => [ 'asc' => [ 'variant_option_group_excl_lang.title' => SORT_ASC ], 'desc' => [ 'variant_option_group_excl_lang.title' => SORT_DESC ], ], 'created_at', 'is_filter', 'status', 'sort', ], ]; return $dataProvider; } /** * Return ActiveQueyr for current model * * @return \yii\db\ActiveQuery */ protected function createQuery(): ActiveQuery { return VariantOptionGroupExcl::find(); } }