Fix variable name in example

This commit is contained in:
Alexandre Segura
2026-02-24 08:18:32 +01:00
committed by GitHub
parent 1de1a186e8
commit 2298b8885a

View File

@@ -664,7 +664,7 @@ interface.
+
+ $qb = $repository->createQueryBuilder('o');
+
+ if ($productAttributesToBeExcluded !== []) {
+ if ($excludedFoods !== []) {
+ $qb
+ ->andWhere($qb->expr()->notIn('o.id', $excludedFoods));
+ ->setParameter('excludedFoods', $excludedFoods)