Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Yii2 - Create an ActiveDataProvider from a HasMany model relation
$applicationsDataProvider = new \yii\data\ActiveDataProvider([
'query' => $model->getRelation('relationName'),
'pagination' => [
'pageParam' => 'apps_page'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.