Skip to content

Commit ca4363f

Browse files
committed
fix PostgreSQL group by clause #45
1 parent ed3f0a2 commit ca4363f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/CommentModel.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ public static function getAuthors()
341341
->alias('c')
342342
->select(['c.createdBy', 'a.username'])
343343
->joinWith('author a')
344-
->groupBy('c.createdBy')
344+
->groupBy(['c.createdBy', 'a.username'])
345+
->orderBy('a.username')
345346
->asArray()
346347
->all();
347348

0 commit comments

Comments
 (0)