fix: filter hotels by correct property

This commit is contained in:
Björn Fromme
2024-11-13 09:36:53 +01:00
parent bbc0be1c81
commit 5643f6fffb
+1 -1
View File
@@ -122,7 +122,7 @@ class AssignmentRepository extends ServiceEntityRepository
foreach ($filterDto->getHotels() as $hotel) {
$qb
->andWhere($qb->expr()->like('destination.product', ':hotel'))
->andWhere($qb->expr()->like('destination.hotel', ':hotel'))
->setParameter('hotel', '%'.$hotel.'%')
;
}