DX: fixed complicated comparison to add a group by

This commit is contained in:
2022-10-06 23:42:46 +02:00
parent 1b1aaaa862
commit 07d15f0a68
5 changed files with 5 additions and 32 deletions

View File

@@ -46,14 +46,7 @@ final class JobAggregator implements AggregatorInterface
}
$qb->addSelect('IDENTITY(caluser.userJob) as job_aggregator');
$groupBy = $qb->getDQLPart('groupBy');
if (!empty($groupBy)) {
$qb->addGroupBy('job_aggregator');
} else {
$qb->groupBy('job_aggregator');
}
$qb->addGroupBy('job_aggregator');
}
public function applyOn(): string