diff --git a/docs/guide/output-data-widgets.md b/docs/guide/output-data-widgets.md index 75447d7..ac41302 100644 --- a/docs/guide/output-data-widgets.md +++ b/docs/guide/output-data-widgets.md @@ -351,7 +351,7 @@ $dataProvider = new ActiveDataProvider([ // join with relation `author` that is a relation to the table `users` // and set the table alias to be `author` -$query->joinWith(['author' => function($query) { $query->from(['author' => 'users']); }]); +$query->joinWith(['author' => function($query) { $query->from(['author' , 'users']); }]); // enable sorting for the related column $dataProvider->sort->attributes['author.name'] = [ 'asc' => ['author.name' => SORT_ASC],