data
data copied to clipboard
Data providers
It's more clear name.
### What steps will reproduce the problem? Currently, the filtered value is treated as `$item[$field]`. I'm not really frontend developer, but I think yii2 knew it too: https://github.com/yiisoft/yii2/blob/f8611d170d77f8b89f24bd80e7f3b6b2a8947380/framework/grid/DataColumn.php#L232 ### What...
| Q | A | ------------- | --- | Is bugfix? | ❌ | New feature? | ❌ | Breaks BC? | ❌
As an example ```php $query = (new Query($db))->from('customer'); $dataReader = (new QueryDataReader($query))->withSort(Sort::only(['id'])); $paginator = (new KeysetPaginator($dataReader))->withPageSize(1000); while ($dataReader = $paginator->nextDataReader()) { foreach ($dataReader->read() as $data) { // work with $data...
`$currentOrder` can be set to default value after normalizing config. https://github.com/yiisoft/data/blob/15ddd6e3bbb58bc7e341e173b0b66a51936dcecc/src/Reader/Sort.php#L114-L126 This will help avoid an exception if `$currentOrder` is not set manually. https://github.com/yiisoft/data/blob/15ddd6e3bbb58bc7e341e173b0b66a51936dcecc/src/Paginator/KeysetPaginator.php#L444-L446