$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, ]); $query->andFilterWhere(['like', 'camera_id', $this->camera_id]) ->andFilterWhere(['like', 'confidence', $this->confidence]) ->andFilterWhere(['like', 'enable_door', $this->enable_door]) ->andFilterWhere(['like', 'encoded_person_image', $this->encoded_person_image]) ->andFilterWhere(['like', 'frametime', $this->frametime]) ->andFilterWhere(['like', 'face_id', $this->face_id]) ->andFilterWhere(['like', 'person_id', $this->person_id]) ->andFilterWhere(['like', 'image', $this->image]) ->andFilterWhere(['like', 'status', $this->status]) ->andFilterWhere(['like', 'stt', $this->stt]) ->andFilterWhere(['like', 'timezone', $this->timezone]) ->andFilterWhere(['like', 'name', $this->name]); return $dataProvider; } }