fix: type mismatches and handle nullable values
This commit is contained in:
@@ -158,7 +158,7 @@ class AssignmentRepository extends ServiceEntityRepository
|
||||
;
|
||||
}
|
||||
|
||||
if (0 < count($filterDto->getHotels())) {
|
||||
if (0 < count((array)$filterDto->getHotels())) {
|
||||
$constraints = [];
|
||||
foreach ($filterDto->getHotels() as $index => $hotel) {
|
||||
$constraints[] = $qb->expr()->like('destination.hotel', ':hotel'.$index);
|
||||
|
||||
Reference in New Issue
Block a user