mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Remove usage of setParameters in various filters
This commit is contained in:
@@ -59,9 +59,10 @@ class UserScopeFilter implements FilterInterface
|
||||
->andWhere(
|
||||
$qb->expr()->in("{$p}_history.scope", ":{$p}_scopes")
|
||||
)
|
||||
->setParameters([
|
||||
"{$p}_scopes" => $data["scopes"],
|
||||
]);
|
||||
->setParameter(
|
||||
"{$p}_scopes",
|
||||
$data["scopes"],
|
||||
);
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
|
@@ -51,9 +51,10 @@ class UsersJobFilter implements FilterInterface
|
||||
. "AND {$p}_history.job IN ( :{$p}_jobs )"
|
||||
)
|
||||
)
|
||||
->setParameters([
|
||||
"{$p}_jobs" => $data["jobs"],
|
||||
]);
|
||||
->setParameter(
|
||||
"{$p}_jobs",
|
||||
$data["jobs"]
|
||||
);
|
||||
}
|
||||
|
||||
public function applyOn()
|
||||
|
@@ -53,9 +53,10 @@ class UsersScopeFilter implements FilterInterface
|
||||
. "AND {$p}_history.scope IN ( :{$p}_scopes )"
|
||||
)
|
||||
)
|
||||
->setParameters([
|
||||
"{$p}_scopes" => $data["scopes"],
|
||||
]);
|
||||
->setParameter(
|
||||
"{$p}_scopes",
|
||||
$data["scopes"]
|
||||
);
|
||||
}
|
||||
|
||||
public function applyOn(): string
|
||||
|
Reference in New Issue
Block a user