From 22fff48bb2f7cac69436d2b0109fc55634d7d87c Mon Sep 17 00:00:00 2001 From: amjadniazi48 Date: Mon, 13 Oct 2014 22:11:20 +0500 Subject: [PATCH] Update output-data-widgets.md changed $query->from(['author' => 'users']) to $query->from(['author' , 'users']) on line 354 --- docs/guide/output-data-widgets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/output-data-widgets.md b/docs/guide/output-data-widgets.md index 75447d72a9..ac41302e1b 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],