$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([ 'id' => $this->id, 'type' => $this->type, 'trig_item_id' => $this->trig_item_id, 'task_id' => $this->task_id, ]); $query->andFilterWhere(['like', 'trig_date', $this->trig_date]) ->andFilterWhere(['like', 'trig_time', $this->trig_time]) ->andFilterWhere(['like', 'trig_time_wdays', $this->trig_time_wdays]) ->andFilterWhere(['like', 'trig_item_value', $this->trig_item_value]) ->andFilterWhere(['like', 'name', $this->name]); return $dataProvider; } }