Skip to content

Commit

Permalink
fix PostgreSQL group by clause #45
Browse files Browse the repository at this point in the history
  • Loading branch information
morontt committed Jan 27, 2017
1 parent ed3f0a2 commit ca4363f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/CommentModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ public static function getAuthors()
->alias('c')
->select(['c.createdBy', 'a.username'])
->joinWith('author a')
->groupBy('c.createdBy')
->groupBy(['c.createdBy', 'a.username'])
->orderBy('a.username')
->asArray()
->all();

Expand Down

0 comments on commit ca4363f

Please sign in to comment.