mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
Remove usage of setParameters in various filters
This commit is contained in:
@@ -72,9 +72,10 @@ class CreatorJobFilter implements FilterInterface
|
||||
)
|
||||
)
|
||||
->andWhere($qb->expr()->in("{$p}_history.job", ":{$p}_jobs"))
|
||||
->setParameters([
|
||||
"{$p}_jobs" => $data["creator_job"],
|
||||
]);
|
||||
->setParameter(
|
||||
"{$p}_jobs",
|
||||
$data["creator_job"],
|
||||
);
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
|
@@ -63,11 +63,15 @@ readonly class JobWorkingOnCourseFilter implements FilterInterface
|
||||
. "AND {$p}_info.infoDate >= :{$p}_start and {$p}_info.infoDate < :{$p}_end"
|
||||
)
|
||||
)
|
||||
->setParameters([
|
||||
"{$p}_jobs" => $data['jobs'],
|
||||
"{$p}_start" => $this->rollingDateConverter->convert($data['start_date']),
|
||||
"{$p}_end" => $this->rollingDateConverter->convert($data['end_date'])
|
||||
])
|
||||
->setParameter("{$p}_jobs", $data['jobs'])
|
||||
->setParameter(
|
||||
"{$p}_start",
|
||||
$this->rollingDateConverter->convert($data['start_date']),
|
||||
)
|
||||
->setParameter(
|
||||
"{$p}_end",
|
||||
$this->rollingDateConverter->convert($data['end_date'])
|
||||
)
|
||||
;
|
||||
}
|
||||
|
||||
|
@@ -63,11 +63,15 @@ readonly class ScopeWorkingOnCourseFilter implements FilterInterface
|
||||
. "AND {$p}_info.infoDate >= :{$p}_start AND {$p}_info.infoDate < :{$p}_end"
|
||||
)
|
||||
)
|
||||
->setParameters([
|
||||
"{$p}_scopes" => $data["scopes"],
|
||||
"{$p}_start" => $this->rollingDateConverter->convert($data["start_date"]),
|
||||
"{$p}_end" => $this->rollingDateConverter->convert($data["end_date"])
|
||||
])
|
||||
->setParameter("{$p}_scopes", $data["scopes"])
|
||||
->setParameter(
|
||||
"{$p}_start",
|
||||
$this->rollingDateConverter->convert($data["start_date"]),
|
||||
)
|
||||
->setParameter(
|
||||
"{$p}_end",
|
||||
$this->rollingDateConverter->convert($data["end_date"])
|
||||
)
|
||||
;
|
||||
}
|
||||
|
||||
|
@@ -72,9 +72,10 @@ class UserJobFilter implements FilterInterface
|
||||
)
|
||||
)
|
||||
->andWhere($qb->expr()->in("{$p}_jobHistory.job", ":{$p}_job"))
|
||||
->setParameters([
|
||||
"{$p}_job" => $data["jobs"],
|
||||
])
|
||||
->setParameter(
|
||||
"{$p}_job",
|
||||
$data["jobs"],
|
||||
)
|
||||
;
|
||||
}
|
||||
|
||||
|
@@ -72,9 +72,10 @@ class UserScopeFilter implements FilterInterface
|
||||
)
|
||||
)
|
||||
->andWhere($qb->expr()->in("{$p}_scopeHistory.scope", ":{$p}_scopes"))
|
||||
->setParameters([
|
||||
"{$p}_scopes" => $data["scopes"],
|
||||
])
|
||||
->setParameter(
|
||||
"{$p}_scopes",
|
||||
$data["scopes"],
|
||||
)
|
||||
;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user