Add optional services to daytrip data
This commit is contained in:
@@ -139,7 +139,8 @@ class ContingentRepository extends AbstractRepository implements ProviderInterfa
|
|||||||
$qb
|
$qb
|
||||||
->select('c.room_code as code', 'c.room_label as label', 'c.available as available', 'c.min_price as price',
|
->select('c.room_code as code', 'c.room_label as label', 'c.available as available', 'c.min_price as price',
|
||||||
'c.hotel_bus_pro_id as hotelBusProId', 'd.bus_pro_id as busProId',
|
'c.hotel_bus_pro_id as hotelBusProId', 'd.bus_pro_id as busProId',
|
||||||
'd.services_included as servicesIncluded', 'd.skipass_included as skipassIncluded')
|
'd.services_included as servicesIncluded', 'd.services_general as servicesOptional',
|
||||||
|
'd.skipass_included as skipassIncluded')
|
||||||
->from('tx_epproducts_domain_model_contingent', 'c')
|
->from('tx_epproducts_domain_model_contingent', 'c')
|
||||||
->innerJoin('c', 'tx_epproducts_domain_model_date', 'd', 'c.date = d.date_start AND c.hotel_code = d.hotel_code')
|
->innerJoin('c', 'tx_epproducts_domain_model_date', 'd', 'c.date = d.date_start AND c.hotel_code = d.hotel_code')
|
||||||
->where('c.hotel = :hotelUid')
|
->where('c.hotel = :hotelUid')
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ class ContingentDataService
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$row['servicesIncluded'] = unserialize($row['servicesIncluded']);
|
$row['servicesIncluded'] = unserialize($row['servicesIncluded']);
|
||||||
|
$row['servicesOptional'] = unserialize($row['servicesOptional']);
|
||||||
|
|
||||||
$rooms[] = $row;
|
$rooms[] = $row;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user