From ddbc51da3105ad65d4237b86a34ccc0f0e95dac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 13 Nov 2023 18:03:02 +0100 Subject: [PATCH] chore: disable unfinished code for the time being --- src/Repository/AssignmentRepository.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Repository/AssignmentRepository.php b/src/Repository/AssignmentRepository.php index 3a78188..d0a7197 100644 --- a/src/Repository/AssignmentRepository.php +++ b/src/Repository/AssignmentRepository.php @@ -220,12 +220,12 @@ class AssignmentRepository extends ServiceEntityRepository ->setParameter('teamer', $teamer) ; - foreach ($availabilities as $availability) { - $qb->orWhere($qb->expr()->andX( - $qb->expr()->eq('assignment.dateFrom', ':dateFrom'), - $qb->expr()->eq('assignment.dateTo', ':dateTo') - )); - } +// foreach ($availabilities as $availability) { +// $qb->orWhere($qb->expr()->andX( +// $qb->expr()->eq('assignment.dateFrom', ':dateFrom'), +// $qb->expr()->eq('assignment.dateTo', ':dateTo') +// )); +// } return $qb ->orderBy('assignment.createdAt', 'DESC')