$query, ]); $this->load($params); if (!$this->validate()) { // uncomment the following line if you do not want to return any records when validation fails // $query->where('0=1'); return $dataProvider; } // grid filtering conditions $query->andFilterWhere([ 'comment_id' => $this->comment_id, 'user_id' => $this->user_id, 'comment_pid' => $this->comment_pid, 'status' => $this->status, 'date_add' => $this->date_add, 'date_update' => $this->date_update, 'date_delete' => $this->date_delete, 'model_id' => $this->model_id, ]); $query->andFilterWhere(['like', 'text', $this->text]) ->andFilterWhere(['like', 'user_name', $this->user_name]) ->andFilterWhere(['like', 'user_email', $this->user_email]) ->andFilterWhere(['like', 'model', $this->model]); return $dataProvider; } }