feat: filter assignments by hotel in favor of destination
This commit is contained in:
1 parent
e0522bdf53
commit
a668dcb326
7 files changed
+41
-34
No files matched your search
@@ -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()
|
||||
;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user