forked from sonata-project/SonataDoctrineORMAdminBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make computeNbResult() compatible with GROUP BY
Using getOneOrNullResult() causes an exception in case of a query with GROUP BY. To fix the issue, we allow multiple rows and do a sum over the cnt column, which holds the count for each group. Fixes sonata-project#968
- Loading branch information
1 parent
ffa2275
commit 367a7c9
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters