mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
define queryKey in 11 aggregators
This commit is contained in:
@@ -25,8 +25,8 @@ class ByActionNumberAggregator implements AggregatorInterface
|
||||
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$qb->addSelect('AS _aggregator')
|
||||
->addGroupBy('_aggregator');
|
||||
$qb->addSelect('AS acp_by_action_number_aggregator')
|
||||
->addGroupBy('acp_by_action_number_aggregator');
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
@@ -50,7 +50,7 @@ class ByActionNumberAggregator implements AggregatorInterface
|
||||
|
||||
public function getQueryKeys($data): array
|
||||
{
|
||||
return ['_aggregator'];
|
||||
return ['acp_by_action_number_aggregator'];
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
|
@@ -25,8 +25,8 @@ class CreatorJobAggregator implements AggregatorInterface
|
||||
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$qb->addSelect('AS _aggregator')
|
||||
->addGroupBy('_aggregator');
|
||||
$qb->addSelect('AS acp_creator_job_aggregator')
|
||||
->addGroupBy('acp_creator_job_aggregator');
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
@@ -50,7 +50,7 @@ class CreatorJobAggregator implements AggregatorInterface
|
||||
|
||||
public function getQueryKeys($data): array
|
||||
{
|
||||
return ['_aggregator'];
|
||||
return ['acp_creator_job_aggregator'];
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
|
@@ -25,8 +25,8 @@ class ByEndDateAggregator implements AggregatorInterface
|
||||
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$qb->addSelect('AS _aggregator')
|
||||
->addGroupBy('_aggregator');
|
||||
$qb->addSelect('AS eval_by_end_date_aggregator')
|
||||
->addGroupBy('eval_by_end_date_aggregator');
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
@@ -50,7 +50,7 @@ class ByEndDateAggregator implements AggregatorInterface
|
||||
|
||||
public function getQueryKeys($data): array
|
||||
{
|
||||
return ['_aggregator'];
|
||||
return ['eval_by_end_date_aggregator'];
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
|
@@ -25,8 +25,8 @@ class ByMaxDateAggregator implements AggregatorInterface
|
||||
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$qb->addSelect('AS _aggregator')
|
||||
->addGroupBy('_aggregator');
|
||||
$qb->addSelect('AS eval_by_max_date_aggregator')
|
||||
->addGroupBy('eval_by_max_date_aggregator');
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
@@ -50,7 +50,7 @@ class ByMaxDateAggregator implements AggregatorInterface
|
||||
|
||||
public function getQueryKeys($data): array
|
||||
{
|
||||
return ['_aggregator'];
|
||||
return ['eval_by_max_date_aggregator'];
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
|
@@ -25,8 +25,8 @@ class ByStartDateAggregator implements AggregatorInterface
|
||||
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$qb->addSelect('AS _aggregator')
|
||||
->addGroupBy('_aggregator');
|
||||
$qb->addSelect('AS eval_by_start_date_aggregator')
|
||||
->addGroupBy('eval_by_start_date_aggregator');
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
@@ -50,7 +50,7 @@ class ByStartDateAggregator implements AggregatorInterface
|
||||
|
||||
public function getQueryKeys($data): array
|
||||
{
|
||||
return ['_aggregator'];
|
||||
return ['eval_by_start_date_aggregator'];
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
|
@@ -25,8 +25,8 @@ class CurrentActionAggregator implements AggregatorInterface
|
||||
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$qb->addSelect('AS _aggregator')
|
||||
->addGroupBy('_aggregator');
|
||||
$qb->addSelect('AS acpw_current_action_aggregator')
|
||||
->addGroupBy('acpw_current_action_aggregator');
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
@@ -50,7 +50,7 @@ class CurrentActionAggregator implements AggregatorInterface
|
||||
|
||||
public function getQueryKeys($data): array
|
||||
{
|
||||
return ['_aggregator'];
|
||||
return ['acpw_current_action_aggregator'];
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
|
Reference in New Issue
Block a user