mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
define queryKey in 11 aggregators
This commit is contained in:
parent
f1fb77187f
commit
fe120086c7
@ -25,8 +25,8 @@ class ByActivityNumberAggregator implements AggregatorInterface
|
||||
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$qb->addSelect('AS _aggregator')
|
||||
->addGroupBy('_aggregator');
|
||||
$qb->addSelect('AS activity_by_number_aggregator')
|
||||
->addGroupBy('activity_by_number_aggregator');
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
@ -50,7 +50,7 @@ class ByActivityNumberAggregator implements AggregatorInterface
|
||||
|
||||
public function getQueryKeys($data): array
|
||||
{
|
||||
return ['_aggregator'];
|
||||
return ['activity_by_number_aggregator'];
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
|
@ -25,8 +25,8 @@ class SentReceivedAggregator implements AggregatorInterface
|
||||
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$qb->addSelect('AS _aggregator')
|
||||
->addGroupBy('_aggregator');
|
||||
$qb->addSelect('AS activity_sent_received_aggregator')
|
||||
->addGroupBy('activity_sent_received_aggregator');
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
@ -50,7 +50,7 @@ class SentReceivedAggregator implements AggregatorInterface
|
||||
|
||||
public function getQueryKeys($data): array
|
||||
{
|
||||
return ['_aggregator'];
|
||||
return ['activity_sent_received_aggregator'];
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
|
@ -25,8 +25,8 @@ class ByActivityTypeAggregator implements AggregatorInterface
|
||||
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$qb->addSelect('AS _aggregator')
|
||||
->addGroupBy('_aggregator');
|
||||
$qb->addSelect('AS aside_by_activity_type_aggregator')
|
||||
->addGroupBy('aside_by_activity_type_aggregator');
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
@ -50,7 +50,7 @@ class ByActivityTypeAggregator implements AggregatorInterface
|
||||
|
||||
public function getQueryKeys($data): array
|
||||
{
|
||||
return ['_aggregator'];
|
||||
return ['aside_by_activity_type_aggregator'];
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user