We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78cebc6 commit 4b3a912Copy full SHA for 4b3a912
models/Extend.php
@@ -61,6 +61,6 @@ public function getProfile()
61
*/
62
public static function top($field, $limit)
63
{
64
- return static::find()->with('user')->orderBy([$field => SORT_DESC, 'last_visit' => SORT_DESC])->limit($limit)->all();
+ return static::find()->with('user')->with('profile')->orderBy([$field => SORT_DESC, 'last_visit' => SORT_DESC])->limit($limit)->all();
65
}
66
0 commit comments