$query, 'sort' => [ 'defaultOrder' => [ 'commited_at' => SORT_DESC, ], ], ]); $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, 'event_id' => $this->event_id, 'board_id' => $this->board_id, 'user_id' => $this->user_id, 'item_id' => $this->item_id, 'commited_at' => $this->commited_at, 'value' => $this->value, ]); return $dataProvider; } }