$query, ]); $this->load($params); if (!$this->validate()) { // uncomment the following line if you do not want to any records when validation fails // $query->where('0=1'); return $dataProvider; } $query->andFilterWhere([ 'id' => $this->id, 'item_id' => $this->item_id, 'model' => 'seo', ]); $query->andFilterWhere(['like', 'seo_title', $this->seo_title]) ->andFilterWhere(['like', 'seo_h1', $this->seo_h1]) ->andFilterWhere(['like', 'seo_description', $this->seo_description]) ->andFilterWhere(['like', 'seo_translite', $this->seo_translite]); return $dataProvider; } }