forked from Somnia/SomniaRooms
API response adjustments.
This commit is contained in:
1 parent
a4ec188cff
commit
7b6d1408f8
3 files changed
+12
-3
No files matched your search
@@ -52,6 +52,9 @@ class FareTableRepository extends ServiceEntityRepository
|
||||
public function getAllowedGuestNumberOnFareTableList(array $fareTableList): array
|
||||
{
|
||||
$fareTableCount = count($fareTableList);
|
||||
if($fareTableCount == 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$fareTableIdList = \array_map(function (FareTable $element) {
|
||||
return $element->getId();
|
||||
|
||||
Reference in new issue
Block a user