Export/ExportManager.php
private function handleAggregators(
            ExportInterface $export, 
            QueryBuilder $qb, 
            $data, 
            array $center)
    {
        $aggregators = $this->retrieveUsedAggregators($data);
        
        foreach ($aggregators as $alias => $aggregator) {
            $formData = $data[$alias];
            $aggregator->alterQuery($qb, $formData['form']);
        }
    }
private function handleAggregators(
            ExportInterface $export, 
            QueryBuilder $qb, 
            $data, 
            array $center)
    {
        $aggregators = $this->retrieveUsedAggregators($data);
        
        foreach ($aggregators as $alias => $aggregator) {
            $formData = $data[$alias];
            $aggregator->alterQuery($qb, $formData['form']);
        }
    }
private function handleAggregators ( ExportInterface $ export , QueryBuilder $ qb , $ data , array $ center ) { $ aggregators = $ this -> retrieveUsedAggregators ( $ data ) ; foreach ( $ aggregators as $ alias => $ aggregator ) { $ formData = $ data [ $ alias ] ; $ aggregator -> alterQuery ( $ qb , $ formData [ 'form' ] ) ; } }
Alter the query with selected aggregators

Check for acl. If an user is not authorized to see an aggregator, throw an
UnauthorizedException.

@param ExportInterface $export
@param QueryBuilder $qb
@param type $data
@param \Chill\MainBundle\Entity\Center[] $centers the picked centers
@throw UnauthorizedHttpException if the user is not authorized
Alter the query with selected aggregators