/**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = EventEntry::find();
     // add conditions that should always apply here
     $dataProvider = new ActiveDataProvider(['query' => $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, 'event_id' => $this->event_id, 'booking_status_id' => $this->booking_status_id, 'start_timestamp' => $this->start_timestamp, 'end_timestamp' => $this->end_timestamp, 'all_day_option_id' => $this->all_day_option_id, 'confirm_by' => $this->confirm_by, 'confirm_date' => $this->confirm_date, 'sort_order' => $this->sort_order, 'status_id' => $this->status_id, 'old_id' => $this->old_id, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, 'created_by' => $this->created_by, 'updated_by' => $this->updated_by]);
     $query->andFilterWhere(['like', 'title', $this->title])->andFilterWhere(['like', 'description', $this->description]);
     return $dataProvider;
 }