feat: filter assignments by hotel in favor of destination

This commit is contained in:
Björn Fromme committed 2024-02-28 13:10:52 +01:00
1 parent e0522bdf53
commit a668dcb326
7 files changed
+41 -34

No files matched your search

+13
View File
@@ -71,4 +71,17 @@ class DestinationRepository extends ServiceEntityRepository
return $data;
}
public function getHotels(): array
{
$qb = $this->createQueryBuilder('destination');
return $qb
->select('destination.hotel', 'destination.hotelCode', 'destination.hotelBusProId')
->groupBy('destination.hotelBusProId')
->orderBy('destination.hotel', 'ASC')
->getQuery()
->getArrayResult()
;
}
}