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

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

View File

@@ -24,7 +24,7 @@ class ByActionNumberAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data): void
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext): void
{
$qb->addSelect('(SELECT COUNT(acp_by_action_action.id) FROM '.AccompanyingPeriodWork::class.' acp_by_action_action WHERE acp_by_action_action.accompanyingPeriod = acp) AS acp_by_action_number_aggregator')
->addGroupBy('acp_by_action_number_aggregator');

View File

@@ -72,7 +72,7 @@ final readonly class ClosingDateAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -27,7 +27,7 @@ class ClosingMotiveAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb->addSelect('IDENTITY(acp.closingMotive) AS closingmotive_aggregator');
$qb->addGroupBy('closingmotive_aggregator');

View File

@@ -26,7 +26,7 @@ class ConfidentialAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb->addSelect('acp.confidential AS confidential_aggregator');
$qb->addGroupBy('confidential_aggregator');

View File

@@ -34,7 +34,7 @@ class CreatorJobAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -33,7 +33,7 @@ final readonly class DurationAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
match ($data['precision']) {
'day' => $qb->addSelect('(COALESCE(acp.closingDate, :now) - acp.openingDate) AS duration_aggregator'),

View File

@@ -26,7 +26,7 @@ class EmergencyAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb->addSelect('acp.emergency AS emergency_aggregator');
$qb->addGroupBy('emergency_aggregator');

View File

@@ -27,7 +27,7 @@ final readonly class EvaluationAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('acpw', $qb->getAllAliases(), true)) {
$qb->leftJoin('acp.works', 'acpw');

View File

@@ -35,7 +35,7 @@ final readonly class GeographicalUnitStatAggregator implements AggregatorInterfa
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb->leftJoin('acp.locationHistories', 'acp_geog_agg_location_history');

View File

@@ -26,7 +26,7 @@ class IntensityAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb->addSelect('acp.intensity AS intensity_aggregator');
$qb->addGroupBy('intensity_aggregator');

View File

@@ -35,7 +35,7 @@ final readonly class JobWorkingOnCourseAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -72,7 +72,7 @@ final readonly class OpeningDateAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -36,7 +36,7 @@ final readonly class OriginAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('acporigin', $qb->getAllAliases(), true)) {
$qb->leftJoin('acp.origin', 'acporigin');

View File

@@ -58,7 +58,7 @@ final readonly class PersonParticipatingAggregator implements AggregatorInterfac
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$k = self::KEY;

View File

@@ -39,7 +39,7 @@ final readonly class ReferrerAggregator implements AggregatorInterface, DataTran
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb
->addSelect('IDENTITY('.self::A.'.user) AS referrer_aggregator')

View File

@@ -39,7 +39,7 @@ readonly class ReferrerScopeAggregator implements AggregatorInterface, DataTrans
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -26,7 +26,7 @@ final readonly class RequestorAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('acppart', $qb->getAllAliases(), true)) {
$qb->join('acp.participations', 'acppart');

View File

@@ -27,7 +27,7 @@ final readonly class ScopeAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('acpscope', $qb->getAllAliases(), true)) {
$qb->leftJoin('acp.scopes', 'acpscope');

View File

@@ -35,7 +35,7 @@ final readonly class ScopeWorkingOnCourseAggregator implements AggregatorInterfa
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -27,7 +27,7 @@ final readonly class SocialActionAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('acpw', $qb->getAllAliases(), true)) {
// here, we will only see accompanying period linked with a socialAction

View File

@@ -27,7 +27,7 @@ final readonly class SocialIssueAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('acpsocialissue', $qb->getAllAliases(), true)) {
// we will see accompanying period linked with social issues

View File

@@ -34,7 +34,7 @@ final readonly class StepAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array(self::A, $qb->getAllAliases(), true)) {
$qb->leftJoin('acp.stepHistories', self::A);

View File

@@ -39,7 +39,7 @@ final readonly class UserJobAggregator implements AggregatorInterface, DataTrans
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -73,7 +73,7 @@ final readonly class UserWorkingOnCourseAggregator implements AggregatorInterfac
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!in_array('acpinfo', $qb->getAllAliases(), true)) {
$qb->leftJoin(

View File

@@ -69,7 +69,7 @@ final readonly class ByClosingMotiveAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb
->addSelect('IDENTITY(acpstephistory.closingMotive) AS '.self::KEY)

View File

@@ -74,7 +74,7 @@ final readonly class ByDateAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::KEY;

View File

@@ -71,7 +71,7 @@ final readonly class ByStepAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb
->addSelect('acpstephistory.step AS '.self::KEY)

View File

@@ -32,7 +32,7 @@ final class ByEndDateAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$fmt = match ($data['frequency']) {
'week' => 'YYYY-IW',

View File

@@ -32,7 +32,7 @@ final class ByMaxDateAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$fmt = match ($data['frequency']) {
'week' => 'YYYY-IW',

View File

@@ -32,7 +32,7 @@ final class ByStartDateAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$fmt = match ($data['frequency']) {
'week' => 'YYYY-IW',

View File

@@ -27,7 +27,7 @@ class EvaluationTypeAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb->addSelect('IDENTITY(workeval.evaluation) AS eval_evaluationtype_aggregator');
$qb->addGroupBy('eval_evaluationtype_aggregator');

View File

@@ -26,7 +26,7 @@ class HavingEndDateAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb
->addSelect('CASE WHEN workeval.endDate IS NULL THEN true ELSE false END AS eval_enddate_aggregator')

View File

@@ -29,7 +29,7 @@ class ChildrenNumberAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('composition_children', $qb->getAllAliases(), true)) {
$clause = $qb->expr()->andX(

View File

@@ -31,7 +31,7 @@ class CompositionAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('composition_type', $qb->getAllAliases(), true)) {
$clause = $qb->expr()->andX(

View File

@@ -27,7 +27,7 @@ final readonly class AdministrativeStatusAggregator implements AggregatorInterfa
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb->leftJoin('person.administrativeStatus', 'admin_status');
$qb->addSelect('admin_status.id as administrative_status_aggregator');

View File

@@ -31,7 +31,7 @@ final readonly class AgeAggregator implements AggregatorInterface, ExportElement
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb->addSelect('DATE_DIFF(:date_age_calculation, person.birthdate)/365 as person_age');
$qb->setParameter('date_age_calculation', $this->rollingDateConverter->convert($data['date_age_calculation']));

View File

@@ -34,7 +34,7 @@ class ByHouseholdCompositionAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -73,7 +73,7 @@ final readonly class CenterAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$alias = 'pers_center_agg';
$atDate = 'pers_center_agg_at_date';

View File

@@ -32,7 +32,7 @@ final readonly class CountryOfBirthAggregator implements AggregatorInterface, Ex
return null;
}
public function alterQuery(QueryBuilder $qb, $data): void
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext): void
{
// add a clause in select part
if ('country' === $data['group_by_level']) {

View File

@@ -27,7 +27,7 @@ final readonly class EmploymentStatusAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb->leftJoin('person.employmentStatus', 'es');
$qb->addSelect('es.id as employment_status_aggregator');

View File

@@ -28,7 +28,7 @@ final readonly class GenderAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb->leftJoin('person.gender', 'g');
$qb->addSelect('g.id as gender');

View File

@@ -33,7 +33,7 @@ class GeographicalUnitAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data): void
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext): void
{
$qb
->leftJoin(

View File

@@ -35,7 +35,7 @@ final readonly class HouseholdPositionAggregator implements AggregatorInterface,
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('householdmember', $qb->getAllAliases(), true)) {
$qb->join(HouseholdMember::class, 'householdmember', Expr\Join::WITH, 'householdmember.person = person');

View File

@@ -27,7 +27,7 @@ final readonly class MaritalStatusAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('personmarital', $qb->getAllAliases(), true)) {
$qb->join('person.maritalStatus', 'personmarital');

View File

@@ -31,7 +31,7 @@ final readonly class NationalityAggregator implements AggregatorInterface, Expor
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
// add a clause in select part
if ('country' === $data['group_by_level']) {

View File

@@ -71,7 +71,7 @@ final readonly class PostalCodeAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

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

View File

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

View File

@@ -34,7 +34,7 @@ class CreatorJobAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -34,7 +34,7 @@ class CreatorScopeAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -26,7 +26,7 @@ class CurrentActionAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data): void
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext): void
{
$qb
->addSelect('

View File

@@ -27,7 +27,7 @@ final readonly class GoalAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('goal', $qb->getAllAliases(), true)) {
$qb->leftJoin('acpw.goals', 'goal');

View File

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

View File

@@ -57,7 +57,7 @@ final readonly class HandlingThirdPartyAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -35,7 +35,7 @@ final readonly class JobAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -36,7 +36,7 @@ final readonly class ReferrerAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -27,7 +27,7 @@ final readonly class ResultAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('result', $qb->getAllAliases(), true)) {
$qb->leftJoin('acpw.results', 'result');

View File

@@ -35,7 +35,7 @@ final readonly class ScopeAggregator implements AggregatorInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -70,7 +70,7 @@ class AvgDurationAPWorkPersonAssociatedOnAccompanyingPeriod implements ExportInt
return ['export_result'];
}
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 @@ class AvgDurationAPWorkPersonAssociatedOnWork implements ExportInterface, Groupe
return ['export_result'];
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(Query::HYDRATE_SCALAR);
}

View File

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

View File

@@ -78,7 +78,7 @@ class CountAccompanyingCourseStepHistory implements ExportInterface, GroupedExpo
return ['export_result'];
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(Query::HYDRATE_SCALAR);
}

View File

@@ -78,7 +78,7 @@ class CountAccompanyingPeriodWorkAssociatePersonOnAccompanyingPeriod implements
return ['export_result'];
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(Query::HYDRATE_SCALAR);
}

View File

@@ -78,7 +78,7 @@ class CountAccompanyingPeriodWorkAssociatePersonOnWork implements ExportInterfac
return ['export_result'];
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(Query::HYDRATE_SCALAR);
}

View File

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

View File

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

View File

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

View File

@@ -78,7 +78,7 @@ class CountPersonOnAccompanyingPeriodWorkAssociatePersonOnWork implements Export
return ['export_result'];
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(Query::HYDRATE_SCALAR);
}

View File

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

View File

@@ -78,7 +78,7 @@ final readonly class ListAccompanyingPeriod implements ListInterface, GroupedExp
return $this->listAccompanyingPeriodHelper->getQueryKeys($data);
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(AbstractQuery::HYDRATE_SCALAR);
}

View File

@@ -182,7 +182,7 @@ final readonly class ListAccompanyingPeriodWorkAssociatePersonOnAccompanyingPeri
return self::FIELDS;
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(AbstractQuery::HYDRATE_SCALAR);
}

View File

@@ -182,7 +182,7 @@ final readonly class ListAccompanyingPeriodWorkAssociatePersonOnWork implements
return self::FIELDS;
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(AbstractQuery::HYDRATE_SCALAR);
}

View File

@@ -170,7 +170,7 @@ final readonly class ListEvaluation implements ListInterface, GroupedExportInter
return self::FIELDS;
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(AbstractQuery::HYDRATE_SCALAR);
}

View File

@@ -114,7 +114,7 @@ class ListHouseholdInPeriod implements ListInterface, GroupedExportInterface
);
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(AbstractQuery::HYDRATE_SCALAR);
}

View File

@@ -97,7 +97,7 @@ class ListPerson implements ListInterface, GroupedExportInterface
return [...$fields, ...\array_keys($this->slugs)];
}
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 @@ class ListPersonDuplicate implements DirectExportInterface, ExportElementValidat
return ['precision' => self::PRECISION_DEFAULT_VALUE];
}
public function generate(array $acl, array $data = []): Response
public function generate(array $acl, \Chill\MainBundle\Export\ExportGenerationContext $context, array $data = []): Response
{
$values = [];
$values[] = $this->getHeaders();

View File

@@ -86,7 +86,7 @@ final readonly class ListPersonHavingAccompanyingPeriod implements ListInterface
return $this->listPersonHelper->getAllKeys();
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(AbstractQuery::HYDRATE_SCALAR);
}

View File

@@ -88,7 +88,7 @@ final readonly class ListPersonWithAccompanyingPeriodDetails implements ListInte
);
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(AbstractQuery::HYDRATE_SCALAR);
}

View File

@@ -97,7 +97,7 @@ final readonly class StatAccompanyingCourseDuration implements ExportInterface,
return ['avg_export_result', 'count_acp_export_result', 'count_acppart_export_result', 'count_pers_export_result'];
}
public function getResult($query, $data)
public function getResult($query, $data, \Chill\MainBundle\Export\ExportGenerationContext $context)
{
return $query->getQuery()->getResult(Query::HYDRATE_SCALAR);
}

View File

@@ -29,7 +29,7 @@ class ActiveOnDateFilter 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');

View File

@@ -28,7 +28,7 @@ class ActiveOneDayBetweenDatesFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$clause = "OVERLAPSI (acp.openingDate, acp.closingDate), (:datefrom, :dateto) = 'TRUE'";

View File

@@ -27,7 +27,7 @@ class AdministrativeLocationFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$clause = $qb->expr()->in('acp.administrativeLocation', ':locations');
$qb

View File

@@ -29,7 +29,7 @@ class ClosingMotiveFilter 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()->in('acp.closingMotive', ':closingmotive');

View File

@@ -35,7 +35,7 @@ class ConfidentialFilter 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()->eq('acp.confidential', ':confidential');

View File

@@ -26,7 +26,7 @@ class CreatorFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('acp_creator', $qb->getAllAliases(), true)) {
$qb->join('acp.createdBy', 'acp_creator');

View File

@@ -36,7 +36,7 @@ class CreatorJobFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -35,7 +35,7 @@ class EmergencyFilter 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()->eq('acp.emergency', ':emergency');

View File

@@ -29,7 +29,7 @@ class EvaluationFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
if (!\in_array('acpw', $qb->getAllAliases(), true)) {
$qb->join('acp.works', 'acpw');

View File

@@ -45,7 +45,7 @@ class GeographicalUnitStatFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$subQueryDql =
'SELECT

View File

@@ -67,7 +67,7 @@ final readonly class HandlingThirdPartyFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$p = self::PREFIX;

View File

@@ -24,7 +24,7 @@ class HasNoActionFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data): void
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext): void
{
$qb->andWhere('NOT EXISTS (SELECT 1 FROM '.AccompanyingPeriodWork::class.' work WHERE work.accompanyingPeriod = acp)');
}

View File

@@ -29,7 +29,7 @@ class HasNoReferrerFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb
->andWhere('

View File

@@ -29,7 +29,7 @@ class HasTemporaryLocationFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$qb
->join('acp.locationHistories', 'acp_having_temporarily_location')

View File

@@ -68,7 +68,7 @@ final readonly class HavingAnAccompanyingPeriodInfoWithinDatesFilter implements
return null;
}
public function alterQuery(QueryBuilder $qb, $data): void
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext): void
{
$ai = 'having_ai_within_interval_acc_info';
$as = 'having_ai_within_interval_start_date';

View File

@@ -35,7 +35,7 @@ class IntensityFilter 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()->eq('acp.intensity', ':intensity');

View File

@@ -46,7 +46,7 @@ readonly class JobWorkingOnCourseFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data): void
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext): void
{
$p = self::PREFIX;

View File

@@ -62,7 +62,7 @@ final readonly class NotAssociatedWithAReferenceAddressFilter implements FilterI
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$k = 'acp_not_associated_ref_filter';

View File

@@ -29,7 +29,7 @@ class OpenBetweenDatesFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data, \Chill\MainBundle\Export\ExportGenerationContext $exportGenerationContext)
{
$clause = $qb->expr()->andX(
$qb->expr()->gte('acp.openingDate', ':datefrom'),

View File

@@ -29,7 +29,7 @@ class OriginFilter 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()->in('acp.origin', ':origin');

Some files were not shown because too many files have changed in this diff Show More