query->andFilterWhere( [ 'ilike', 'product_option_group_excl_lang.title', $this->title, ] ); $dataProvider->sort = [ 'attributes' => [ 'id', 'title' => [ 'asc' => [ 'product_option_group_excl_lang.title' => SORT_ASC ], 'desc' => [ 'product_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 ProductOptionGroupExcl::find(); } public function insertCategories(array $batch) { // TODO: Implement insertCategories() method. } }