Skip to content

Commit

Permalink
Revert "Update output-data-widgets.md"
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Oct 13, 2014
1 parent 2de741d commit 3f3cd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/output-data-widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 3f3cd25

Please sign in to comment.