Commit 06a09788 authored by Bernhard Schussek's avatar Bernhard Schussek

Fixed fetchPage() when groupBy() is used

parent 52864db8
......@@ -589,6 +589,7 @@ abstract class ORMRepository extends EntityRepository implements EditableReposit
$countQb = clone $qb;
$totalCount = $countQb->select(sprintf('COUNT(%s)', $alias))
->resetDQLPart('groupBy')
->getQuery()
->getSingleScalarResult();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment