tax_group_id = intval($params['group']); unset($params['group']); } $dataProvider = new ActiveDataProvider([ 'query' => $query, ]); $this->load($params); // if (!$this->validate()) { // return $dataProvider; // } // grid filtering conditions $query->andFilterWhere([ 'tax_option_id' => $this->tax_option_id, 'tax_group_id' => $this->tax_group_id, 'parent_id' => $this->parent_id, 'sort' => $this->sort, ]); $query->andFilterWhere(['like', 'alias', $this->alias]); $query->andFilterWhere(['like', 'tax_value_string.value', $this->default_value]); $query->orderBy(['path_int' => SORT_ASC, 'depth' => SORT_ASC, 'sort' => SORT_ASC]); return $dataProvider; } }