$dataProvider = new ActiveDataProvider([
'query' => $query,
'pagination' => [
'pageSize' => 20,
]
]);
// Add some data to the dataProvider
$models = $dataProvider->getModels();
foreach ($models as $key => $model) {
$models[$key]['saleTicket'] = SaleTicket::findOne($model['id']);
}
$dataProvider->setModels($models);
In the view file I successfuly use $model['saleTicket'] data in the Yii-Grid at any page (using pagination).
But in the Yii-Export this additional $model['saleTicket']available only at the "first page" of the export with batchSize. After first batch I've got only "query" data.
I have an ActiveDataProvider
In the view file I successfuly use
$model['saleTicket']
data in the Yii-Grid at any page (using pagination).But in the Yii-Export this additional
$model['saleTicket']
available only at the "first page" of the export with batchSize. After first batch I've got only "query" data.Expected behavior
All data should be available at the export with
batchSize
.