add missing arguments to method alterQuery (wip)

This commit is contained in:
2025-02-24 16:49:15 +01:00
parent 791f5bb4be
commit 1751c65731
211 changed files with 235 additions and 223 deletions

View File

@@ -32,7 +32,7 @@ class EventDateAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$order = null;

View File

@@ -29,7 +29,7 @@ class EventTypeAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('eventtype', $qb->getAllAliases(), true)) {
$qb->leftJoin('event.type', 'eventtype');

View File

@@ -29,7 +29,7 @@ class RoleAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('event_part', $qb->getAllAliases(), true)) {
$qb->leftJoin('event_part.role', 'role');

View File

@@ -70,7 +70,7 @@ readonly class CountEventParticipations implements ExportInterface, GroupedExpor
return ['export_count_event_participants'];
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(Query::HYDRATE_SCALAR);
}

View File

@@ -70,7 +70,7 @@ readonly class CountEvents implements ExportInterface, GroupedExportInterface
return ['export_count_event'];
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(Query::HYDRATE_SCALAR);
}

View File

@@ -30,7 +30,7 @@ class EventDateFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$where = $qb->getDQLPart('where');
$clause = $qb->expr()->between(

View File

@@ -34,7 +34,7 @@ class EventTypeFilter implements ExportElementValidatedInterface, FilterInterfac
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$clause = $qb->expr()->in('event.type', ':selected_event_types');

View File

@@ -34,7 +34,7 @@ class RoleFilter implements ExportElementValidatedInterface, FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$clause = $qb->expr()->in('event_part.role', ':selected_part_roles');