Commit 22fff48b by amjadniazi48

Update output-data-widgets.md

changed $query->from(['author' => 'users']) to $query->from(['author' , 'users']) on line 354
parent da3f8861
......@@ -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],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment