diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregator.php index 4c784e08d..925160a2d 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregator.php @@ -45,7 +45,7 @@ final class OriginAggregator implements AggregatorInterface $qb->join('acp.origin', 'acporigin'); } - $qb->addSelect('o.id AS origin_aggregator'); + $qb->addSelect('acporigin.id AS origin_aggregator'); $groupby = $qb->getDQLPart('groupBy');