Skip to content

Commit

Permalink
Fixes refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
buba committed Jan 24, 2016
1 parent 09283c9 commit ade03eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public static function conversations($userId)
'contact' => function ($contact) {
/**@var $contact ActiveQuery * */
$contact->with([
'profile' => function ($advanced) {
/**@var $advanced ActiveQuery * */
$advanced->select(['id', 'CONCAT_WS(\' \', first_name, last_name) AS name', 'avatar']);
'profile' => function ($profile) {
/**@var $profile ActiveQuery * */
$profile->select(['id', 'CONCAT_WS(\' \', first_name, last_name) AS name', 'avatar']);
},
])->select(['id']);
},
Expand Down

0 comments on commit ade03eb

Please sign in to comment.