S0RIEN/DataGridBundle — Issue #47: getTotalCount and groupBy
Author: Spea
Created: 2011-10-19 12:35:32+00:00
State: open

When using groupBy in the query, the method Entity#getTotalCount fails with a "NonUniqueResultException".

Example:

```php
setCallback(Source::EVENT_PREPARE_QUERY, function($qb) {
$qb->groupBy(Entity::TABLE_ALIAS .'.id');
});
```