From 3f3cd25316add356a12ed2e16b64d23bd44cfc9e Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Mon, 13 Oct 2014 20:50:41 +0200 Subject: [PATCH] Revert "Update output-data-widgets.md" --- 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 ac41302e1b..75447d72a9 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],