fix another failing test on postgres

This commit is contained in:
Ceeram 2012-03-14 00:49:04 +01:00
parent 467b0f1c45
commit 7145bd6574

View file

@ -305,7 +305,7 @@ class PaginatorCustomPost extends CakeTestModel {
$query['fields'] = array('author_id', 'Author.user');
$this->virtualFields['total_posts'] = "COUNT({$this->alias}.id)";
$query['fields'][] = 'total_posts';
$query['group'] = array('author_id');
$query['group'] = array('author_id', 'Author.user');
$query['order'] = array('author_id' => 'ASC');
return $query;
}