Dumped Contents
1 in
RoomStayCalculation.php
line 61:
$chambersRoomsPrices[$indexChamber][$key]['isCapacity'] = $chamber->hasMatchingRoomCapacity($room->getroomCapacities());
if ($this->debug) {
dump('Hotel : '.$hotel->getName().' - Chambre : #'. $room->getId(). ' - '.$room->getName(). ' has the capacity config check: ', $chambersRoomsPrices[$indexChamber][$key]['isCapacity']);
dump($chamber);
}
"Hotel : Salt of Palmar - Chambre : #135 - Chambre "Gardien View" has the capacity config check: "
2 in
RoomStayCalculation.php
line 61:
$chambersRoomsPrices[$indexChamber][$key]['isCapacity'] = $chamber->hasMatchingRoomCapacity($room->getroomCapacities());
if ($this->debug) {
dump('Hotel : '.$hotel->getName().' - Chambre : #'. $room->getId(). ' - '.$room->getName(). ' has the capacity config check: ', $chambersRoomsPrices[$indexChamber][$key]['isCapacity']);
dump($chamber);
}
true
In
RoomStayCalculation.php
line 62:
if ($this->debug) {
dump('Hotel : '.$hotel->getName().' - Chambre : #'. $room->getId(). ' - '.$room->getName(). ' has the capacity config check: ', $chambersRoomsPrices[$indexChamber][$key]['isCapacity']);
dump($chamber);
}
// check room capacities
App\DTO\SearchChambersDTO {#1413
+nbAdults: 2
+nbChildren: 0
+teenCount: null
+childCount: null
+babyCount: null
+birthdays: []
}
1 in
RoomStayCalculation.php
line 472:
}
if ($this->debug) {
dump('getDatesAndDailyPrices() -> Results before parsing', $roomPricesDatesAndPrice);
}
"getDatesAndDailyPrices() -> Results before parsing"
2 in
RoomStayCalculation.php
line 472:
}
if ($this->debug) {
dump('getDatesAndDailyPrices() -> Results before parsing', $roomPricesDatesAndPrice);
}
array:1 [
0 => App\DTO\RoomDatesAndPricesDTO {#1679
+rpId: 1910
+adultsPrice: 270
+childrenPrice: 0
+startAt: DateTimeImmutable @1742601600 {#1466
date: 2025-03-22 00:00:00.0 UTC (+00:00)
}
+endAt: DateTimeImmutable @1743033540 {#1452
date: 2025-03-26 23:59:00.0 UTC (+00:00)
}
}
]
1 in
RoomStayCalculation.php
line 481:
$prices_wo_extras = $this->parseDailyPrices($roomPricesDatesAndPrice);
if ($this->debug) {
dump('parseDailyPrices() -> Parsed daily prices', $prices_wo_extras);
}
if (!$prices_wo_extras) {
"parseDailyPrices() -> Parsed daily prices"
2 in
RoomStayCalculation.php
line 481:
$prices_wo_extras = $this->parseDailyPrices($roomPricesDatesAndPrice);
if ($this->debug) {
dump('parseDailyPrices() -> Parsed daily prices', $prices_wo_extras);
}
if (!$prices_wo_extras) {
array:4 [
"2025-03-22" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
"2025-03-23" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
"2025-03-24" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
"2025-03-25" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
]
1 in
RoomStayCalculation.php
line 88:
$searchResults = [];
if ($this->debug) {
dump('Update Stay Rooms - Chambers Prices', $chambersRoomsPrices);
}
"Update Stay Rooms - Chambers Prices"
2 in
RoomStayCalculation.php
line 88:
$searchResults = [];
if ($this->debug) {
dump('Update Stay Rooms - Chambers Prices', $chambersRoomsPrices);
}
array:1 [
0 => array:1 [
0 => array:13 [
"current_chamber" => App\DTO\SearchChambersDTO {#1413
+nbAdults: 2
+nbChildren: 0
+teenCount: null
+childCount: null
+babyCount: null
+birthdays: []
}
"room_id" => 135
"room_picture" => "/uploads/rooms/135/671634540e650377649460.jpg"
"room_name" => "Chambre "Gardien View""
"room_slug" => "chambre-gardien-view"
"room_description" => "Découvrez le lagon turquoise au travers du jardin verdoyant. Écoutez le doux son des filaos qui se balancent dans la brise."
"adults" => 2
"kids" => 0
"teens" => null
"children" => null
"babies" => null
"isCapacity" => true
"prices" => array:7 [
"room_price_id" => 1910
"adult_amount" => 1080
"children_amount" => 0
"basis_amount" => 1080
"mandatoryExtraId" => null
"default_extra_label" => ""
"dates_prices" => array:4 [
"2025-03-22" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
"2025-03-23" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
"2025-03-24" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
"2025-03-25" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
]
]
]
]
]
1 in
RoomStayCalculation.php
line 217:
}
if ($this->debug) {
dump('Update Stay Rooms results', $searchResults);
}
// Set the results and sort by total amount ASC
"Update Stay Rooms results"
2 in
RoomStayCalculation.php
line 217:
}
if ($this->debug) {
dump('Update Stay Rooms results', $searchResults);
}
// Set the results and sort by total amount ASC
array:1 [
0 => App\DTO\RoomStayDTO {#1599
-marginRate: 20
-id: 135
-name: "Chambre "Gardien View""
-slug: "chambre-gardien-view"
-picture: "/uploads/rooms/135/671634540e650377649460.jpg"
-description: "Découvrez le lagon turquoise au travers du jardin verdoyant. Écoutez le doux son des filaos qui se balancent dans la brise."
-stayTotalNights: 4
-adults: 2
-kids: 0
-neededRooms: 1
-kidsRoomsCount: 0
-defaultExtraLabel: ""
-mandatoryExtraId: 189
-chambersStayDetails: array:1 [
0 => array:3 [
"config" => array:4 [
"adults" => 2
"teens" => 0
"children" => 0
"babies" => 0
]
"dates_prices" => array:4 [
"2025-03-22" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
"2025-03-23" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
"2025-03-24" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
"2025-03-25" => array:2 [
"adults_price" => 270
"kids_price" => 0
]
]
"amount" => 1080
]
]
-totalRoomAmount: 1080.0
-totalRoomAmountDiscounted: null
-marginTotalRoom: null
-marginTotalRoomDiscounted: null
-communExtras: array:4 [
0 => App\DTO\ExtraStayDTO {#1633
-marginRate: 20
+extraId: 189
+name: "BASE - PETIT DEJEUNER"
+description: null
+stayTotalNights: 4
+dailyAdults: 0
+dailyTeens: 0
+dailyChildren: 0
+dailyBabies: 0
+adultsExtrasAmount: 0
+kidsExtrasAmount: 0
+stayExtrasAmount: 0
+stayRoomAmount: 1080.0
+totalStayAmountWoDiscount: 1080.0
+totalStayAmount: 1080.0
+finalAmountWoDiscount: 1296.0
+finalAmount: 1296.0
+extraDiscount: null
+extraKidsDiscount: null
+extraStartAt: null
+extraEndAt: null
+eventDuration: 0
+events: []
}
1 => App\DTO\ExtraStayDTO {#1622
-marginRate: 20
+extraId: 89
+name: "Demi pension"
+description: null
+stayTotalNights: 4
+dailyAdults: 90
+dailyTeens: 0
+dailyChildren: 0
+dailyBabies: 0
+adultsExtrasAmount: 360
+kidsExtrasAmount: 0
+stayExtrasAmount: 360
+stayRoomAmount: 1080.0
+totalStayAmountWoDiscount: 1440.0
+totalStayAmount: 1440.0
+finalAmountWoDiscount: 1728.0
+finalAmount: 1728.0
+extraDiscount: null
+extraKidsDiscount: null
+extraStartAt: null
+extraEndAt: null
+eventDuration: 0
+events: []
}
2 => App\DTO\ExtraStayDTO {#1645
-marginRate: 20
+extraId: 90
+name: "Pension complète"
+description: null
+stayTotalNights: 4
+dailyAdults: 160
+dailyTeens: 0
+dailyChildren: 0
+dailyBabies: 0
+adultsExtrasAmount: 640
+kidsExtrasAmount: 0
+stayExtrasAmount: 640
+stayRoomAmount: 1080.0
+totalStayAmountWoDiscount: 1720.0
+totalStayAmount: 1720.0
+finalAmountWoDiscount: 2064.0
+finalAmount: 2064.0
+extraDiscount: null
+extraKidsDiscount: null
+extraStartAt: null
+extraEndAt: null
+eventDuration: 0
+events: []
}
3 => App\DTO\ExtraStayDTO {#1644
-marginRate: 20
+extraId: 92
+name: "Formule "Tout Inclus""
+description: null
+stayTotalNights: 4
+dailyAdults: 240
+dailyTeens: 0
+dailyChildren: 0
+dailyBabies: 0
+adultsExtrasAmount: 960
+kidsExtrasAmount: 0
+stayExtrasAmount: 960
+stayRoomAmount: 1080.0
+totalStayAmountWoDiscount: 2040.0
+totalStayAmount: 2040.0
+finalAmountWoDiscount: 2448.0
+finalAmount: 2448.0
+extraDiscount: null
+extraKidsDiscount: null
+extraStartAt: null
+extraEndAt: null
+eventDuration: 0
+events: []
}
]
-specialExtras: []
-discounts: []
-error: []
}
]
1 in
RoomStayCalculation.php
line 274:
{
$offers_eligibled = [];
if ($this->debug) {
dump('All available offers of the hotel', $offers);
}
foreach ($offers as $key => $offer) {
"All available offers of the hotel"
2 in
RoomStayCalculation.php
line 274:
{
$offers_eligibled = [];
if ($this->debug) {
dump('All available offers of the hotel', $offers);
}
foreach ($offers as $key => $offer) {
Doctrine\Common\Collections\ArrayCollection {#1885
-elements: array:2 [
0 => App\Entity\Offers {#1745
-id: 238
-title: "FLASH SALES 30%"
-type: "Special"
-hotel: App\Entity\Hotels {#1027
-id: 22
-name: "Salt of Palmar"
-description: """
Le premier SALT devait être à Maurice. C'est notre maison, notre amour, notre fierté et notre joie. C'est une beauté exotique indéniable. Volcanique, blanc, bleu et vert. C'est indien, français, créole, chinois et africain. Ses couleurs, ses histoires, ses coutumes, ses sons et ses saveurs forment un mélange brillant et enivrant qu'il est impossible d'ignorer ou d'oublier. Si vous en faites l'expérience.\r\n
\r\n
C'est pourquoi nous avons créé SALT of Palmar. L’île Maurice est mûre pour l’exploration, imprégnée d’histoire et regorgeant d’un patrimoine humble et d’une culture moderne. Et nous voulons vous montrer la vraie Maurice.
"""
-website: "https://www.saltresorts.com/fr/maurice/hotel/saltofpalmar"
-stars: 5
-youtubeVideoId: "obiIi19ck1o"
-phone: "+230 698 2727"
-email: "reservation@saltresorts.com"
-active: true
-gmapUrl: "<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3744.275639081461!2d57.78713181217443!3d-20.205863881167257!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x217cfb1a0e896841%3A0x6e2cca285821d4b0!2sSALT%20of%20Palmar%2C%20an%20adult-only%20boutique%20hotel%2C%20a%20member%20of%20Design%20Hotels!5e0!3m2!1sfr!2sfr!4v1718969540531!5m2!1sfr!2sfr" width="100%" height="600" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>"
-zone: "Est"
-createdAt: DateTimeImmutable @1714145854 {#1019
date: 2024-04-26 15:37:34.0 UTC (+00:00)
}
-updatedAt: DateTimeImmutable @1733849171 {#1050
date: 2024-12-10 16:46:11.0 UTC (+00:00)
}
-rooms: Doctrine\ORM\PersistentCollection {#1024
#collection: Doctrine\Common\Collections\ArrayCollection {#1023
-elements: array:1 [
0 => App\Entity\Rooms {#1047
-id: 135
-name: "Chambre "Gardien View""
-description: "Découvrez le lagon turquoise au travers du jardin verdoyant. Écoutez le doux son des filaos qui se balancent dans la brise."
-active: true
-hotel: App\Entity\Hotels {#1027}
-roomPrices: Doctrine\Common\Collections\ArrayCollection {#1692
-elements: array:1 [
0 => App\Entity\RoomPrices {#1719
-id: 1910
-title: "Chambre "Gardien View" - Moyenne Saison"
-room: App\Entity\Rooms {#1047}
-quantity: null
-stayStartedAt: DateTimeImmutable @1737201600 {#1647
date: 2025-01-18 12:00:00.0 UTC (+00:00)
}
-stayEndedAt: DateTimeImmutable @1746014400 {#1656
date: 2025-04-30 12:00:00.0 UTC (+00:00)
}
-saleStartedAt: DateTimeImmutable @1725148800 {#1722
date: 2024-09-01 00:00:00.0 UTC (+00:00)
}
-saleEndedAt: DateTimeImmutable @1767181057 {#1721
date: 2025-12-31 11:37:37.0 UTC (+00:00)
}
-minNights: 1
-doubleOccupancy: "270.00"
-singleOccupancy: "255.00"
-tripleOccupancy: null
-active: true
-extraBaby: null
-extraChild: null
-extraTeen: 55.0
-defaultExtraLabel: null
}
]
}
-stopSales: Doctrine\ORM\PersistentCollection {#1083
#collection: Doctrine\Common\Collections\ArrayCollection {#1180
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Rooms {#1047}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#904 …}
-backRefFieldName: "room"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1144 …}
}
-roomCapacities: Doctrine\ORM\PersistentCollection {#1040
#collection: Doctrine\Common\Collections\ArrayCollection {#1042
-elements: array:3 [
0 => App\Entity\RoomCapacities {#1717
-id: 1777
-room: App\Entity\Rooms {#1047}
-adults: 2
-teens: null
-children: null
-babies: null
-isDefaultConfig: false
}
1 => App\Entity\RoomCapacities {#1628
-id: 1778
-room: App\Entity\Rooms {#1047}
-adults: 1
-teens: null
-children: null
-babies: null
-isDefaultConfig: false
}
2 => App\Entity\RoomCapacities {#1618
-id: 1779
-room: App\Entity\Rooms {#1047}
-adults: 1
-teens: 1
-children: null
-babies: null
-isDefaultConfig: false
}
]
}
#initialized: true
-snapshot: array:3 [ …3]
-owner: App\Entity\Rooms {#1047}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#906 …}
-backRefFieldName: "room"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1069 …}
}
-createdAt: DateTimeImmutable @1717520580 {#1012
date: 2024-06-04 17:03:00.0 UTC (+00:00)
}
-updatedAt: DateTimeImmutable @1729672838 {#1031
date: 2024-10-23 08:40:38.0 UTC (+00:00)
}
-imageFile: null
-featuredImage: "671634540e650377649460.jpg"
-gallery: App\Entity\Galleries {#1290
-id: 108
-hotel: null
-room: App\Entity\Rooms {#1047}
-images: Doctrine\ORM\PersistentCollection {#1355
#collection: Doctrine\Common\Collections\ArrayCollection {#1356
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Galleries {#1290}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#1067 …}
-backRefFieldName: "gallery"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1259 …}
}
-title: "Salt of Palmar Gardien view"
}
-mediaDirSlug: "135"
-lowerRoomPrice: null
-services: array:1 [
0 => ""
]
-slug: "chambre-gardien-view"
}
]
}
#initialized: true
-snapshot: array:1 [ …1]
-owner: App\Entity\Hotels {#1027}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#1116 …}
-backRefFieldName: "hotel"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#881 …}
}
-address: "Route Côtière, Palmar, Île Maurice"
-checkInTime: "14:00"
-checkOutTime: "11:00"
-babyAgeMax: "2"
-childAgeMax: "16"
-teenAgeMax: "18"
-extraCharges: Doctrine\ORM\PersistentCollection {#1184
#collection: Doctrine\Common\Collections\ArrayCollection {#1178
-elements: array:4 [
0 => App\Entity\ExtraCharges {#1615
-id: 89
-title: "Demi pension"
-description: null
-adultExtra: 45.0
-babyExtra: null
-childExtra: null
-teenExtra: 45.0
-stayStartedAt: null
-stayEndedAt: null
-isActive: true
-isMandatory: false
-minNights: null
-hotel: App\Entity\Hotels {#1027}
}
1 => App\Entity\ExtraCharges {#1629
-id: 90
-title: "Pension complète"
-description: null
-adultExtra: 80.0
-babyExtra: null
-childExtra: null
-teenExtra: 80.0
-stayStartedAt: null
-stayEndedAt: null
-isActive: true
-isMandatory: false
-minNights: null
-hotel: App\Entity\Hotels {#1027}
}
2 => App\Entity\ExtraCharges {#1627
-id: 92
-title: "Formule "Tout Inclus""
-description: null
-adultExtra: 120.0
-babyExtra: null
-childExtra: null
-teenExtra: 90.0
-stayStartedAt: null
-stayEndedAt: null
-isActive: true
-isMandatory: false
-minNights: null
-hotel: App\Entity\Hotels {#1027}
}
3 => App\Entity\ExtraCharges {#1626
-id: 189
-title: "BASE - PETIT DEJEUNER"
-description: null
-adultExtra: 0.0
-babyExtra: 0.0
-childExtra: 0.0
-teenExtra: 0.0
-stayStartedAt: null
-stayEndedAt: null
-isActive: true
-isMandatory: true
-minNights: null
-hotel: App\Entity\Hotels {#1027}
}
]
}
#initialized: true
-snapshot: array:4 [ …4]
-owner: App\Entity\Hotels {#1027}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#1117 …}
-backRefFieldName: "hotel"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1188 …}
}
-imageFile: null
-featuredImage: "66965da291ccc236118074.jpg"
-gallery: App\Entity\Galleries {#1251
-id: 21
-hotel: App\Entity\Hotels {#1027}
-room: null
-images: Doctrine\ORM\PersistentCollection {#1264
#collection: Doctrine\Common\Collections\ArrayCollection {#1263
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Galleries {#1251}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#1067 …}
-backRefFieldName: "gallery"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1259 …}
}
-title: "Hotel Salt of Palmar"
}
-mediaDirSlug: null
-offers: Doctrine\Common\Collections\ArrayCollection {#1885}
-highlighted: false
-services: array:1 [
0 => ""
]
-hlStartAt: null
-hlEndAt: null
-slug: "salt-of-palmar"
}
-description: null
-stayStartAt: DateTimeImmutable @1733011200 {#1781
date: 2024-12-01 00:00:00.0 UTC (+00:00)
}
-stayEndAt: DateTimeImmutable @1745971200 {#1795
date: 2025-04-30 00:00:00.0 UTC (+00:00)
}
-bookingStartAt: DateTimeImmutable @1733011200 {#1787
date: 2024-12-01 00:00:00.0 UTC (+00:00)
}
-bookingEndAt: DateTimeImmutable @1739577600 {#1750
date: 2025-02-15 00:00:00.0 UTC (+00:00)
}
-reference: "FLASH SALES 30%"
-minNights: null
-maxNights: null
-earlyBookingDays: null
-applyToAllRooms: true
-selectedRooms: Doctrine\ORM\PersistentCollection {#1743
#collection: Doctrine\Common\Collections\ArrayCollection {#1742
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1745}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1329 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#881 …}
}
-discount: 30
-combinable: false
-selectedOffers: Doctrine\ORM\PersistentCollection {#1741
#collection: Doctrine\Common\Collections\ArrayCollection {#1740
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1745}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1335 …}
-backRefFieldName: "offers"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1250 …}
}
-offers: Doctrine\ORM\PersistentCollection {#1751
#collection: Doctrine\Common\Collections\ArrayCollection {#1752
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1745}
-association: Doctrine\ORM\Mapping\ManyToManyInverseSideMapping {#1339 …}
-backRefFieldName: "selectedOffers"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1250 …}
}
-combinableDiscount: null
-selectedExtras: Doctrine\ORM\PersistentCollection {#1749
#collection: Doctrine\Common\Collections\ArrayCollection {#1812
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1745}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1341 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1188 …}
}
-active: true
-selectedExtrasDiscounted: Doctrine\ORM\PersistentCollection {#1813
#collection: Doctrine\Common\Collections\ArrayCollection {#1814
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1745}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1347 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1188 …}
}
-extrasDiscount: null
-priority: 1
-discountKids1: null
-discountKids2: null
-discountKids3: null
}
1 => App\Entity\Offers {#1819
-id: 239
-title: "FABULOUS OFFER 20%"
-type: "Special"
-hotel: App\Entity\Hotels {#1027}
-description: null
-stayStartAt: DateTimeImmutable @1740268800 {#1815
date: 2025-02-23 00:00:00.0 UTC (+00:00)
}
-stayEndAt: DateTimeImmutable @1745971200 {#1816
date: 2025-04-30 00:00:00.0 UTC (+00:00)
}
-bookingStartAt: DateTimeImmutable @1739664000 {#1817
date: 2025-02-16 00:00:00.0 UTC (+00:00)
}
-bookingEndAt: DateTimeImmutable @1744675200 {#1818
date: 2025-04-15 00:00:00.0 UTC (+00:00)
}
-reference: "FABULOUS OFFER 20%"
-minNights: null
-maxNights: null
-earlyBookingDays: null
-applyToAllRooms: true
-selectedRooms: Doctrine\ORM\PersistentCollection {#1820
#collection: Doctrine\Common\Collections\ArrayCollection {#1821
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1819}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1329 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#881 …}
}
-discount: 20
-combinable: false
-selectedOffers: Doctrine\ORM\PersistentCollection {#1822
#collection: Doctrine\Common\Collections\ArrayCollection {#1823
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1819}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1335 …}
-backRefFieldName: "offers"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1250 …}
}
-offers: Doctrine\ORM\PersistentCollection {#1824
#collection: Doctrine\Common\Collections\ArrayCollection {#1825
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1819}
-association: Doctrine\ORM\Mapping\ManyToManyInverseSideMapping {#1339 …}
-backRefFieldName: "selectedOffers"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1250 …}
}
-combinableDiscount: null
-selectedExtras: Doctrine\ORM\PersistentCollection {#1826
#collection: Doctrine\Common\Collections\ArrayCollection {#1827
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1819}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1341 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1188 …}
}
-active: true
-selectedExtrasDiscounted: Doctrine\ORM\PersistentCollection {#1828
#collection: Doctrine\Common\Collections\ArrayCollection {#1829
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1819}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1347 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1188 …}
}
-extrasDiscount: null
-priority: 1
-discountKids1: null
-discountKids2: null
-discountKids3: null
}
]
}
1 in
PromotionDTO.php
line 522:
if ($offer_bookingStartAt >= $currentBookingDate || $currentBookingDate >= $offer_bookingEndAt)
{
if ($this->debug) {
dump($offer->getId() .' - ' . $offer->getTitle(), 'booking dates failure.');
}
return $this;
}
"238 - FLASH SALES 30%"
2 in
PromotionDTO.php
line 522:
if ($offer_bookingStartAt >= $currentBookingDate || $currentBookingDate >= $offer_bookingEndAt)
{
if ($this->debug) {
dump($offer->getId() .' - ' . $offer->getTitle(), 'booking dates failure.');
}
return $this;
}
"booking dates failure."
1 in
RoomStayCalculation.php
line 246:
$validOffers = $this->getValidOffers($hotel->getOffers());
if ($this->debug) {
dump('Step 1. Offres valides : ', $validOffers);
}
if ($validOffers == null) {
"Step 1. Offres valides : "
2 in
RoomStayCalculation.php
line 246:
$validOffers = $this->getValidOffers($hotel->getOffers());
if ($this->debug) {
dump('Step 1. Offres valides : ', $validOffers);
}
if ($validOffers == null) {
array:1 [
0 => App\DTO\PromotionDTO {#2077
-debug: true
+id: 239
+title: "FABULOUS OFFER 20%"
+description: null
+type: "Special"
+reference: "FABULOUS OFFER 20%"
+from: DateTimeImmutable @1740268800 {#1815
date: 2025-02-23 00:00:00.0 UTC (+00:00)
}
+to: DateTimeImmutable @1745971200 {#1816
date: 2025-04-30 00:00:00.0 UTC (+00:00)
}
+earlyBookingDays: null
+minNights: null
+maxNights: null
+discountRate: 20
+discountFamilyRates: []
+combinableRate: null
+priority: 1
+extrasDiscountRate: null
+isAllRooms: true
+isCombinable: false
+selectedRoomsIDs: []
+selectedExtrasIDs: []
+selectedOffersIDs: []
+selectedExtrasDiscountIDs: []
}
]
1 in
HotelController.php
line 638:
$formBookingHidden->handleRequest($request);
// dump("Session vars:", $siteSession->allVars());
dump("Current Room Price:", $roomRate);
return $this->render('room/show.html.twig', [
'room' => $room,
"Current Room Price:"
2 in
HotelController.php
line 638:
$formBookingHidden->handleRequest($request);
// dump("Session vars:", $siteSession->allVars());
dump("Current Room Price:", $roomRate);
return $this->render('room/show.html.twig', [
'room' => $room,
array:18 [
"hotel_id" => 22
"picture_path" => "/uploads/hotels/22/66965da291ccc236118074.jpg"
"hotel_name" => "Salt of Palmar"
"room_id" => 135
"room_name" => "Chambre "Gardien View""
"from" => "22/03/2025"
"to" => "26/03/2025"
"nights" => 4
"neededRooms" => 1
"adults" => 2
"children" => 0
"totalAmount" => 1080.0
"totalAmountDiscounted" => 864.0
"mandatoryExtraId" => 189
"extra" => App\DTO\ExtraStayDTO {#1633
-marginRate: 20
+extraId: 189
+name: "BASE - PETIT DEJEUNER"
+description: null
+stayTotalNights: 4
+dailyAdults: 0
+dailyTeens: 0
+dailyChildren: 0
+dailyBabies: 0
+adultsExtrasAmount: 0
+kidsExtrasAmount: 0
+stayExtrasAmount: 0
+stayRoomAmount: 864.0
+totalStayAmountWoDiscount: 1080.0
+totalStayAmount: 864.0
+finalAmountWoDiscount: 1296.0
+finalAmount: 1036.8
+extraDiscount: null
+extraKidsDiscount: null
+extraStartAt: null
+extraEndAt: null
+eventDuration: 0
+events: []
}
"specialExtra" => []
"discounts" => array:1 [
0 => array:14 [
"id" => 239
"title" => "FABULOUS OFFER 20%"
"description" => null
"reference" => "FABULOUS OFFER 20%"
"type" => "Special"
"rate" => 20
"extra_rate" => null
"start" => "23/02/2025"
"end" => "30/04/2025"
"kids_rate" => ""
"partial" => false
"selected_rooms" => []
"stayroom_amount_before" => 1080.0
"stayroom_amount_after" => 864.0
]
]
"error" => []
]
1 in
HomeController.php
line 84:
'config_chambers' => ($siteSession->getSessionVar('search/chambers')) ? json_decode($siteSession->getSessionVar('search/chambers')) : null
];
dump('Search Model booking :', $searchToolsDTO);
$form = $this->createForm(SearchToolsType::class, $searchToolsDTO, $searchTypeOptions);
"Search Model booking :"
2 in
HomeController.php
line 84:
'config_chambers' => ($siteSession->getSessionVar('search/chambers')) ? json_decode($siteSession->getSessionVar('search/chambers')) : null
];
dump('Search Model booking :', $searchToolsDTO);
$form = $this->createForm(SearchToolsType::class, $searchToolsDTO, $searchTypeOptions);
App\DTO\SearchToolsDTO {#802
-date_format: "d/m/Y"
-uploaderHelper: Vich\UploaderBundle\Templating\Helper\UploaderHelper {#803
-storage: Vich\UploaderBundle\Storage\FileSystemStorage {#804
#factory: Vich\UploaderBundle\Mapping\PropertyMappingFactory {#805
-metadata: Vich\UploaderBundle\Metadata\MetadataReader {#458
-reader: Metadata\MetadataFactory {#450
-driver: Metadata\Driver\DriverChain {#451
-drivers: array:4 [
0 => Vich\UploaderBundle\Metadata\Driver\XmlDriver {#452
-locator: Metadata\Driver\FileLocator {#449
-dirs: []
}
}
1 => Vich\UploaderBundle\Metadata\Driver\AnnotationDriver {#453
#reader: Vich\UploaderBundle\Metadata\Driver\AttributeReader {#454}
-managerRegistryList: array:1 [
0 => Doctrine\Bundle\DoctrineBundle\Registry {#83
-name: "ORM"
-connections: array:1 [
"default" => "doctrine.dbal.default_connection"
]
-managers: array:1 [
"default" => "doctrine.orm.default_entity_manager"
]
-defaultConnection: "default"
-defaultManager: "default"
-proxyInterfaceName: "Doctrine\Persistence\Proxy"
#container: ContainerUIpB4Xl\App_KernelDevDebugContainer {#42 …20}
}
]
}
2 => Vich\UploaderBundle\Metadata\Driver\YamlDriver {#455
-locator: Metadata\Driver\FileLocator {#449}
}
3 => Vich\UploaderBundle\Metadata\Driver\YmlDriver {#456
-locator: Metadata\Driver\FileLocator {#449}
}
]
}
-cache: Metadata\Cache\FileCache {#457
-dir: "/var/www/vhost/allons-maurice/app/var/cache/dev/vich_uploader"
}
-loadedMetadata: array:5 [
"App\Entity\Rooms" => Metadata\ClassHierarchyMetadata {#1580
+classMetadata: array:1 [
"App\Entity\Rooms" => Vich\UploaderBundle\Metadata\ClassMetadata {#1578
+name: "App\Entity\Rooms"
+methodMetadata: []
+propertyMetadata: []
+fileResources: array:1 [
0 => "/var/www/vhost/allons-maurice/app/src/Entity/Rooms.php"
]
+createdAt: 1738921302
+fields: array:1 [
"imageFile" => array:7 [
"mapping" => "featured_rooms"
"propertyName" => "imageFile"
"fileNameProperty" => "featuredImage"
"size" => null
"mimeType" => null
"originalName" => null
"dimensions" => null
]
]
}
]
}
"App\Entity\Hotels" => Metadata\ClassHierarchyMetadata {#1669
+classMetadata: array:1 [
"App\Entity\Hotels" => Vich\UploaderBundle\Metadata\ClassMetadata {#1623
+name: "App\Entity\Hotels"
+methodMetadata: []
+propertyMetadata: []
+fileResources: array:1 [
0 => "/var/www/vhost/allons-maurice/app/src/Entity/Hotels.php"
]
+createdAt: 1738921302
+fields: array:1 [
"imageFile" => array:7 [
"mapping" => "featured_hotels"
"propertyName" => "imageFile"
"fileNameProperty" => "featuredImage"
"size" => null
"mimeType" => null
"originalName" => null
"dimensions" => null
]
]
}
]
}
"App\Entity\Images" => Metadata\ClassHierarchyMetadata {#2335
+classMetadata: array:1 [
"App\Entity\Images" => Vich\UploaderBundle\Metadata\ClassMetadata {#2336
+name: "App\Entity\Images"
+methodMetadata: []
+propertyMetadata: []
+fileResources: array:1 [
0 => "/var/www/vhost/allons-maurice/app/src/Entity/Images.php"
]
+createdAt: 1738921302
+fields: array:1 [
"imageFile" => array:7 [
"mapping" => "medias"
"propertyName" => "imageFile"
"fileNameProperty" => "imageName"
"size" => "size"
"mimeType" => "type"
"originalName" => null
"dimensions" => "dimensions"
]
]
}
]
}
"App\Entity\Slides" => Metadata\ClassHierarchyMetadata {#2756
+classMetadata: array:1 [
"App\Entity\Slides" => Vich\UploaderBundle\Metadata\ClassMetadata {#2757
+name: "App\Entity\Slides"
+methodMetadata: []
+propertyMetadata: []
+fileResources: array:1 [
0 => "/var/www/vhost/allons-maurice/app/src/Entity/Slides.php"
]
+createdAt: 1738921302
+fields: array:1 [
"imageFile" => array:7 [
"mapping" => "slides"
"propertyName" => "imageFile"
"fileNameProperty" => "bgImage"
"size" => null
"mimeType" => null
"originalName" => null
"dimensions" => null
]
]
}
]
}
"App\Entity\Posts" => Metadata\ClassHierarchyMetadata {#3030
+classMetadata: array:1 [
"App\Entity\Posts" => Vich\UploaderBundle\Metadata\ClassMetadata {#3029
+name: "App\Entity\Posts"
+methodMetadata: []
+propertyMetadata: []
+fileResources: array:1 [
0 => "/var/www/vhost/allons-maurice/app/src/Entity/Posts.php"
]
+createdAt: 1738921302
+fields: array:1 [
"imageFile" => array:7 [
"mapping" => "featured_posts"
"propertyName" => "imageFile"
"fileNameProperty" => "featuredImage"
"size" => null
"mimeType" => null
"originalName" => null
"dimensions" => null
]
]
}
]
}
]
-loadedClassMetadata: array:5 [
"App\Entity\Rooms" => Vich\UploaderBundle\Metadata\ClassMetadata {#1578}
"App\Entity\Hotels" => Vich\UploaderBundle\Metadata\ClassMetadata {#1623}
"App\Entity\Images" => Vich\UploaderBundle\Metadata\ClassMetadata {#2336}
"App\Entity\Slides" => Vich\UploaderBundle\Metadata\ClassMetadata {#2757}
"App\Entity\Posts" => Vich\UploaderBundle\Metadata\ClassMetadata {#3029}
]
-hierarchyMetadataClass: "Metadata\ClassHierarchyMetadata"
-includeInterfaces: false
-debug: true
}
}
-resolver: Vich\UploaderBundle\Mapping\PropertyMappingResolver {#806
-container: ContainerUIpB4Xl\App_KernelDevDebugContainer {#42 …20}
-mappings: array:5 [
"featured_hotels" => array:8 [
"uri_prefix" => "/uploads/hotels"
"upload_destination" => "/var/www/vhost/allons-maurice/app/public/uploads/hotels"
"namer" => array:2 [
"service" => "Vich\UploaderBundle\Naming\UniqidNamer.featured_hotels"
"options" => []
]
"directory_namer" => array:2 [
"service" => "vich_uploader.namer_directory_property"
"options" => array:2 [
"property" => "mediaDirSlug"
"transliterate" => true
]
]
"delete_on_remove" => true
"delete_on_update" => true
"inject_on_load" => false
"db_driver" => "orm"
]
"featured_rooms" => array:8 [
"uri_prefix" => "/uploads/rooms"
"upload_destination" => "/var/www/vhost/allons-maurice/app/public/uploads/rooms"
"namer" => array:2 [
"service" => "Vich\UploaderBundle\Naming\UniqidNamer.featured_rooms"
"options" => []
]
"directory_namer" => array:2 [
"service" => "vich_uploader.namer_directory_property"
"options" => array:2 [
"property" => "mediaDirSlug"
"transliterate" => true
]
]
"delete_on_remove" => true
"delete_on_update" => true
"inject_on_load" => false
"db_driver" => "orm"
]
"featured_posts" => array:8 [
"uri_prefix" => "/uploads/posts"
"upload_destination" => "/var/www/vhost/allons-maurice/app/public/uploads/posts"
"namer" => array:2 [
"service" => "Vich\UploaderBundle\Naming\UniqidNamer.featured_posts"
"options" => []
]
"directory_namer" => array:2 [
"service" => "Vich\UploaderBundle\Naming\CurrentDateTimeDirectoryNamer"
"options" => array:2 [
"date_time_format" => "Y/m/d"
"date_time_property" => "uploadedAt"
]
]
"delete_on_remove" => true
"delete_on_update" => true
"inject_on_load" => false
"db_driver" => "orm"
]
"medias" => array:8 [
"uri_prefix" => "/uploads/medias"
"upload_destination" => "/var/www/vhost/allons-maurice/app/public/uploads/medias"
"namer" => array:2 [
"service" => "Vich\UploaderBundle\Naming\UniqidNamer.medias"
"options" => []
]
"directory_namer" => array:2 [
"service" => "Vich\UploaderBundle\Naming\CurrentDateTimeDirectoryNamer"
"options" => array:2 [
"date_time_format" => "Y/m/d"
"date_time_property" => "uploadedAt"
]
]
"delete_on_remove" => true
"delete_on_update" => true
"inject_on_load" => false
"db_driver" => "orm"
]
"slides" => array:8 [
"uri_prefix" => "/uploads/slides"
"upload_destination" => "/var/www/vhost/allons-maurice/app/public/uploads/slides"
"namer" => array:2 [
"service" => "Vich\UploaderBundle\Naming\UniqidNamer.slides"
"options" => []
]
"directory_namer" => array:2 [
"service" => null
"options" => null
]
"delete_on_remove" => true
"delete_on_update" => true
"inject_on_load" => false
"db_driver" => "orm"
]
]
-defaultFilenameAttributeSuffix: "_name"
}
}
}
}
+hotel: App\Entity\Hotels {#1027
-id: 22
-name: "Salt of Palmar"
-description: """
Le premier SALT devait être à Maurice. C'est notre maison, notre amour, notre fierté et notre joie. C'est une beauté exotique indéniable. Volcanique, blanc, bleu et vert. C'est indien, français, créole, chinois et africain. Ses couleurs, ses histoires, ses coutumes, ses sons et ses saveurs forment un mélange brillant et enivrant qu'il est impossible d'ignorer ou d'oublier. Si vous en faites l'expérience.\r\n
\r\n
C'est pourquoi nous avons créé SALT of Palmar. L’île Maurice est mûre pour l’exploration, imprégnée d’histoire et regorgeant d’un patrimoine humble et d’une culture moderne. Et nous voulons vous montrer la vraie Maurice.
"""
-website: "https://www.saltresorts.com/fr/maurice/hotel/saltofpalmar"
-stars: 5
-youtubeVideoId: "obiIi19ck1o"
-phone: "+230 698 2727"
-email: "reservation@saltresorts.com"
-active: true
-gmapUrl: "<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3744.275639081461!2d57.78713181217443!3d-20.205863881167257!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x217cfb1a0e896841%3A0x6e2cca285821d4b0!2sSALT%20of%20Palmar%2C%20an%20adult-only%20boutique%20hotel%2C%20a%20member%20of%20Design%20Hotels!5e0!3m2!1sfr!2sfr!4v1718969540531!5m2!1sfr!2sfr" width="100%" height="600" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>"
-zone: "Est"
-createdAt: DateTimeImmutable @1714145854 {#1019
date: 2024-04-26 15:37:34.0 UTC (+00:00)
}
-updatedAt: DateTimeImmutable @1733849171 {#1050
date: 2024-12-10 16:46:11.0 UTC (+00:00)
}
-rooms: Doctrine\ORM\PersistentCollection {#1024
#collection: Doctrine\Common\Collections\ArrayCollection {#1023
-elements: array:1 [
0 => App\Entity\Rooms {#1047
-id: 135
-name: "Chambre "Gardien View""
-description: "Découvrez le lagon turquoise au travers du jardin verdoyant. Écoutez le doux son des filaos qui se balancent dans la brise."
-active: true
-hotel: App\Entity\Hotels {#1027}
-roomPrices: Doctrine\Common\Collections\ArrayCollection {#1692
-elements: array:1 [
0 => App\Entity\RoomPrices {#1719
-id: 1910
-title: "Chambre "Gardien View" - Moyenne Saison"
-room: App\Entity\Rooms {#1047}
-quantity: null
-stayStartedAt: DateTimeImmutable @1737201600 {#1647
date: 2025-01-18 12:00:00.0 UTC (+00:00)
}
-stayEndedAt: DateTimeImmutable @1746014400 {#1656
date: 2025-04-30 12:00:00.0 UTC (+00:00)
}
-saleStartedAt: DateTimeImmutable @1725148800 {#1722
date: 2024-09-01 00:00:00.0 UTC (+00:00)
}
-saleEndedAt: DateTimeImmutable @1767181057 {#1721
date: 2025-12-31 11:37:37.0 UTC (+00:00)
}
-minNights: 1
-doubleOccupancy: "270.00"
-singleOccupancy: "255.00"
-tripleOccupancy: null
-active: true
-extraBaby: null
-extraChild: null
-extraTeen: 55.0
-defaultExtraLabel: null
}
]
}
-stopSales: Doctrine\ORM\PersistentCollection {#1083
#collection: Doctrine\Common\Collections\ArrayCollection {#1180
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Rooms {#1047}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#904 …}
-backRefFieldName: "room"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1144 …}
}
-roomCapacities: Doctrine\ORM\PersistentCollection {#1040
#collection: Doctrine\Common\Collections\ArrayCollection {#1042
-elements: array:3 [
0 => App\Entity\RoomCapacities {#1717
-id: 1777
-room: App\Entity\Rooms {#1047}
-adults: 2
-teens: null
-children: null
-babies: null
-isDefaultConfig: false
}
1 => App\Entity\RoomCapacities {#1628
-id: 1778
-room: App\Entity\Rooms {#1047}
-adults: 1
-teens: null
-children: null
-babies: null
-isDefaultConfig: false
}
2 => App\Entity\RoomCapacities {#1618
-id: 1779
-room: App\Entity\Rooms {#1047}
-adults: 1
-teens: 1
-children: null
-babies: null
-isDefaultConfig: false
}
]
}
#initialized: true
-snapshot: array:3 [ …3]
-owner: App\Entity\Rooms {#1047}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#906 …}
-backRefFieldName: "room"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1069 …}
}
-createdAt: DateTimeImmutable @1717520580 {#1012
date: 2024-06-04 17:03:00.0 UTC (+00:00)
}
-updatedAt: DateTimeImmutable @1729672838 {#1031
date: 2024-10-23 08:40:38.0 UTC (+00:00)
}
-imageFile: null
-featuredImage: "671634540e650377649460.jpg"
-gallery: App\Entity\Galleries {#1290
-id: 108
-hotel: null
-room: App\Entity\Rooms {#1047}
-images: Doctrine\ORM\PersistentCollection {#1355
#collection: Doctrine\Common\Collections\ArrayCollection {#1356
-elements: array:3 [
0 => App\Entity\Images {#2508
-id: 225
-title: null
-imageFile: null
-imageName: "6668001646a59123600159.jpeg"
-size: 18821
-type: "image/jpeg"
-dimensions: array:2 [
0 => 369
1 => 277
]
-updatedAt: DateTimeImmutable @1718091798 {#2531
date: 2024-06-11 07:43:18.0 UTC (+00:00)
}
-gallery: App\Entity\Galleries {#1290}
-uploadedAt: null
}
1 => App\Entity\Images {#2546
-id: 481
-title: null
-imageFile: null
-imageName: "671638887e74d732152998.jpg"
-size: 237358
-type: "image/jpeg"
-dimensions: array:2 [
0 => 792
1 => 528
]
-updatedAt: DateTimeImmutable @1729509512 {#2519
date: 2024-10-21 11:18:32.0 UTC (+00:00)
}
-gallery: App\Entity\Galleries {#1290}
-uploadedAt: null
}
2 => App\Entity\Images {#2550
-id: 482
-title: null
-imageFile: null
-imageName: "671638887eed9459148145.jpg"
-size: 212756
-type: "image/jpeg"
-dimensions: array:2 [
0 => 792
1 => 528
]
-updatedAt: DateTimeImmutable @1729509512 {#2549
date: 2024-10-21 11:18:32.0 UTC (+00:00)
}
-gallery: App\Entity\Galleries {#1290}
-uploadedAt: null
}
]
}
#initialized: true
-snapshot: array:3 [ …3]
-owner: App\Entity\Galleries {#1290}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#1067 …}
-backRefFieldName: "gallery"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1259 …}
}
-title: "Salt of Palmar Gardien view"
}
-mediaDirSlug: "135"
-lowerRoomPrice: null
-services: array:1 [
0 => ""
]
-slug: "chambre-gardien-view"
}
]
}
#initialized: true
-snapshot: array:1 [ …1]
-owner: App\Entity\Hotels {#1027}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#1116 …}
-backRefFieldName: "hotel"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#881 …}
}
-address: "Route Côtière, Palmar, Île Maurice"
-checkInTime: "14:00"
-checkOutTime: "11:00"
-babyAgeMax: "2"
-childAgeMax: "16"
-teenAgeMax: "18"
-extraCharges: Doctrine\ORM\PersistentCollection {#1184
#collection: Doctrine\Common\Collections\ArrayCollection {#1178
-elements: array:4 [
0 => App\Entity\ExtraCharges {#1615
-id: 89
-title: "Demi pension"
-description: null
-adultExtra: 45.0
-babyExtra: null
-childExtra: null
-teenExtra: 45.0
-stayStartedAt: null
-stayEndedAt: null
-isActive: true
-isMandatory: false
-minNights: null
-hotel: App\Entity\Hotels {#1027}
}
1 => App\Entity\ExtraCharges {#1629
-id: 90
-title: "Pension complète"
-description: null
-adultExtra: 80.0
-babyExtra: null
-childExtra: null
-teenExtra: 80.0
-stayStartedAt: null
-stayEndedAt: null
-isActive: true
-isMandatory: false
-minNights: null
-hotel: App\Entity\Hotels {#1027}
}
2 => App\Entity\ExtraCharges {#1627
-id: 92
-title: "Formule "Tout Inclus""
-description: null
-adultExtra: 120.0
-babyExtra: null
-childExtra: null
-teenExtra: 90.0
-stayStartedAt: null
-stayEndedAt: null
-isActive: true
-isMandatory: false
-minNights: null
-hotel: App\Entity\Hotels {#1027}
}
3 => App\Entity\ExtraCharges {#1626
-id: 189
-title: "BASE - PETIT DEJEUNER"
-description: null
-adultExtra: 0.0
-babyExtra: 0.0
-childExtra: 0.0
-teenExtra: 0.0
-stayStartedAt: null
-stayEndedAt: null
-isActive: true
-isMandatory: true
-minNights: null
-hotel: App\Entity\Hotels {#1027}
}
]
}
#initialized: true
-snapshot: array:4 [ …4]
-owner: App\Entity\Hotels {#1027}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#1117 …}
-backRefFieldName: "hotel"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1188 …}
}
-imageFile: null
-featuredImage: "66965da291ccc236118074.jpg"
-gallery: App\Entity\Galleries {#1251
-id: 21
-hotel: App\Entity\Hotels {#1027}
-room: null
-images: Doctrine\ORM\PersistentCollection {#1264
#collection: Doctrine\Common\Collections\ArrayCollection {#1263
-elements: array:5 [
0 => App\Entity\Images {#2352
-id: 50
-title: null
-imageFile: null
-imageName: "6661462699e4e876240493.jpg"
-size: 210358
-type: "image/jpeg"
-dimensions: array:2 [
0 => 792
1 => 528
]
-updatedAt: DateTimeImmutable @1717650982 {#2351
date: 2024-06-06 05:16:22.0 UTC (+00:00)
}
-gallery: App\Entity\Galleries {#1251}
-uploadedAt: null
}
1 => App\Entity\Images {#2343
-id: 51
-title: null
-imageFile: null
-imageName: "666146269a6a3221530632.jpg"
-size: 251430
-type: "image/jpeg"
-dimensions: array:2 [
0 => 792
1 => 593
]
-updatedAt: DateTimeImmutable @1717650982 {#2344
date: 2024-06-06 05:16:22.0 UTC (+00:00)
}
-gallery: App\Entity\Galleries {#1251}
-uploadedAt: null
}
2 => App\Entity\Images {#2341
-id: 430
-title: null
-imageFile: null
-imageName: "67053d02ea3bd721173730.jpg"
-size: 234067
-type: "image/jpeg"
-dimensions: array:2 [
0 => 792
1 => 593
]
-updatedAt: DateTimeImmutable @1728396546 {#2342
date: 2024-10-08 14:09:06.0 UTC (+00:00)
}
-gallery: App\Entity\Galleries {#1251}
-uploadedAt: null
}
3 => App\Entity\Images {#2339
-id: 431
-title: null
-imageFile: null
-imageName: "67053d02eab35985880111.jpg"
-size: 354874
-type: "image/jpeg"
-dimensions: array:2 [
0 => 792
1 => 593
]
-updatedAt: DateTimeImmutable @1728396546 {#2340
date: 2024-10-08 14:09:06.0 UTC (+00:00)
}
-gallery: App\Entity\Galleries {#1251}
-uploadedAt: null
}
4 => App\Entity\Images {#2337
-id: 432
-title: null
-imageFile: null
-imageName: "67053d02eb001567135814.jpg"
-size: 210358
-type: "image/jpeg"
-dimensions: array:2 [
0 => 792
1 => 528
]
-updatedAt: DateTimeImmutable @1728396546 {#2338
date: 2024-10-08 14:09:06.0 UTC (+00:00)
}
-gallery: App\Entity\Galleries {#1251}
-uploadedAt: null
}
]
}
#initialized: true
-snapshot: array:5 [ …5]
-owner: App\Entity\Galleries {#1251}
-association: Doctrine\ORM\Mapping\OneToManyAssociationMapping {#1067 …}
-backRefFieldName: "gallery"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1259 …}
}
-title: "Hotel Salt of Palmar"
}
-mediaDirSlug: "22"
-offers: Doctrine\Common\Collections\ArrayCollection {#1885
-elements: array:2 [
0 => App\Entity\Offers {#1745
-id: 238
-title: "FLASH SALES 30%"
-type: "Special"
-hotel: App\Entity\Hotels {#1027}
-description: null
-stayStartAt: DateTimeImmutable @1733011200 {#1781
date: 2024-12-01 00:00:00.0 UTC (+00:00)
}
-stayEndAt: DateTimeImmutable @1745971200 {#1795
date: 2025-04-30 00:00:00.0 UTC (+00:00)
}
-bookingStartAt: DateTimeImmutable @1733011200 {#1787
date: 2024-12-01 00:00:00.0 UTC (+00:00)
}
-bookingEndAt: DateTimeImmutable @1739577600 {#1750
date: 2025-02-15 00:00:00.0 UTC (+00:00)
}
-reference: "FLASH SALES 30%"
-minNights: null
-maxNights: null
-earlyBookingDays: null
-applyToAllRooms: true
-selectedRooms: Doctrine\ORM\PersistentCollection {#1743
#collection: Doctrine\Common\Collections\ArrayCollection {#1742
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1745}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1329 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#881 …}
}
-discount: 30
-combinable: false
-selectedOffers: Doctrine\ORM\PersistentCollection {#1741
#collection: Doctrine\Common\Collections\ArrayCollection {#1740
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1745}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1335 …}
-backRefFieldName: "offers"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1250 …}
}
-offers: Doctrine\ORM\PersistentCollection {#1751
#collection: Doctrine\Common\Collections\ArrayCollection {#1752
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1745}
-association: Doctrine\ORM\Mapping\ManyToManyInverseSideMapping {#1339 …}
-backRefFieldName: "selectedOffers"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1250 …}
}
-combinableDiscount: null
-selectedExtras: Doctrine\ORM\PersistentCollection {#1749
#collection: Doctrine\Common\Collections\ArrayCollection {#1812
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1745}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1341 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1188 …}
}
-active: true
-selectedExtrasDiscounted: Doctrine\ORM\PersistentCollection {#1813
#collection: Doctrine\Common\Collections\ArrayCollection {#1814
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1745}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1347 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1188 …}
}
-extrasDiscount: null
-priority: 1
-discountKids1: null
-discountKids2: null
-discountKids3: null
}
1 => App\Entity\Offers {#1819
-id: 239
-title: "FABULOUS OFFER 20%"
-type: "Special"
-hotel: App\Entity\Hotels {#1027}
-description: null
-stayStartAt: DateTimeImmutable @1740268800 {#1815
date: 2025-02-23 00:00:00.0 UTC (+00:00)
}
-stayEndAt: DateTimeImmutable @1745971200 {#1816
date: 2025-04-30 00:00:00.0 UTC (+00:00)
}
-bookingStartAt: DateTimeImmutable @1739664000 {#1817
date: 2025-02-16 00:00:00.0 UTC (+00:00)
}
-bookingEndAt: DateTimeImmutable @1744675200 {#1818
date: 2025-04-15 00:00:00.0 UTC (+00:00)
}
-reference: "FABULOUS OFFER 20%"
-minNights: null
-maxNights: null
-earlyBookingDays: null
-applyToAllRooms: true
-selectedRooms: Doctrine\ORM\PersistentCollection {#1820
#collection: Doctrine\Common\Collections\ArrayCollection {#1821
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1819}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1329 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#881 …}
}
-discount: 20
-combinable: false
-selectedOffers: Doctrine\ORM\PersistentCollection {#1822
#collection: Doctrine\Common\Collections\ArrayCollection {#1823
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1819}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1335 …}
-backRefFieldName: "offers"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1250 …}
}
-offers: Doctrine\ORM\PersistentCollection {#1824
#collection: Doctrine\Common\Collections\ArrayCollection {#1825
-elements: []
}
#initialized: false
-snapshot: []
-owner: App\Entity\Offers {#1819}
-association: Doctrine\ORM\Mapping\ManyToManyInverseSideMapping {#1339 …}
-backRefFieldName: "selectedOffers"
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1250 …}
}
-combinableDiscount: null
-selectedExtras: Doctrine\ORM\PersistentCollection {#1826
#collection: Doctrine\Common\Collections\ArrayCollection {#1827
-elements: []
}
#initialized: true
-snapshot: []
-owner: App\Entity\Offers {#1819}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1341 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1188 …}
}
-active: true
-selectedExtrasDiscounted: Doctrine\ORM\PersistentCollection {#1828
#collection: Doctrine\Common\Collections\ArrayCollection {#1829
-elements: []
}
#initialized: true
-snapshot: []
-owner: App\Entity\Offers {#1819}
-association: Doctrine\ORM\Mapping\ManyToManyOwningSideMapping {#1347 …}
-backRefFieldName: null
-isDirty: false
-em: ContainerUIpB4Xl\EntityManagerGhost614a58f {#77 …12}
-typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1188 …}
}
-extrasDiscount: null
-priority: 1
-discountKids1: null
-discountKids2: null
-discountKids3: null
}
]
}
-highlighted: false
-services: array:1 [
0 => ""
]
-hlStartAt: null
-hlEndAt: null
-slug: "salt-of-palmar"
}
+stars: null
+dateRange: "22/03/2025 - 26/03/2025"
+fromAt: DateTimeImmutable @1742601600 {#3213
date: 2025-03-22 00:00:00.0 UTC (+00:00)
}
+toAt: DateTimeImmutable @1743033540 {#3212
date: 2025-03-26 23:59:00.0 UTC (+00:00)
}
+zone: null
+honeymoon: false
+ageLimits: array:3 [
"baby" => "2"
"child" => "16"
"teen" => "18"
]
+nights: 4
+chambers: []
+stay_rooms: array:1 [
0 => App\DTO\RoomStayDTO {#1599
-marginRate: 20
-id: 135
-name: "Chambre "Gardien View""
-slug: "chambre-gardien-view"
-picture: "/uploads/rooms/135/671634540e650377649460.jpg"
-description: "Découvrez le lagon turquoise au travers du jardin verdoyant. Écoutez le doux son des filaos qui se balancent dans la brise."
-stayTotalNights: 4
-adults: 2
-kids: 0
-neededRooms: 1
-kidsRoomsCount: 0
-defaultExtraLabel: ""
-mandatoryExtraId: 189
-chambersStayDetails: array:1 [
0 => array:4 [
"config" => array:4 [
"adults" => 2
"teens" => 0
"children" => 0
"babies" => 0
]
"dates_prices" => array:4 [
"2025-03-22" => array:5 [
"adults_price" => 270
"kids_price" => 0
"adults_discount_price" => 216.0
"kids_discount_price" => 0.0
"discounts" => array:1 [
239 => array:2 [
"name" => "FABULOUS OFFER 20%"
"rate" => 20
]
]
]
"2025-03-23" => array:5 [
"adults_price" => 270
"kids_price" => 0
"adults_discount_price" => 216.0
"kids_discount_price" => 0.0
"discounts" => array:1 [
239 => array:2 [
"name" => "FABULOUS OFFER 20%"
"rate" => 20
]
]
]
"2025-03-24" => array:5 [
"adults_price" => 270
"kids_price" => 0
"adults_discount_price" => 216.0
"kids_discount_price" => 0.0
"discounts" => array:1 [
239 => array:2 [
"name" => "FABULOUS OFFER 20%"
"rate" => 20
]
]
]
"2025-03-25" => array:5 [
"adults_price" => 270
"kids_price" => 0
"adults_discount_price" => 216.0
"kids_discount_price" => 0.0
"discounts" => array:1 [
239 => array:2 [
"name" => "FABULOUS OFFER 20%"
"rate" => 20
]
]
]
]
"amount" => 1080
"amount_discount" => 864.0
]
]
-totalRoomAmount: 1080.0
-totalRoomAmountDiscounted: 864.0
-marginTotalRoom: 1296.0
-marginTotalRoomDiscounted: 1036.8
-communExtras: array:4 [
0 => App\DTO\ExtraStayDTO {#1633
-marginRate: 20
+extraId: 189
+name: "BASE - PETIT DEJEUNER"
+description: null
+stayTotalNights: 4
+dailyAdults: 0
+dailyTeens: 0
+dailyChildren: 0
+dailyBabies: 0
+adultsExtrasAmount: 0
+kidsExtrasAmount: 0
+stayExtrasAmount: 0
+stayRoomAmount: 864.0
+totalStayAmountWoDiscount: 1080.0
+totalStayAmount: 864.0
+finalAmountWoDiscount: 1296.0
+finalAmount: 1036.8
+extraDiscount: null
+extraKidsDiscount: null
+extraStartAt: null
+extraEndAt: null
+eventDuration: 0
+events: []
}
1 => App\DTO\ExtraStayDTO {#1622
-marginRate: 20
+extraId: 89
+name: "Demi pension"
+description: null
+stayTotalNights: 4
+dailyAdults: 90
+dailyTeens: 0
+dailyChildren: 0
+dailyBabies: 0
+adultsExtrasAmount: 360
+kidsExtrasAmount: 0
+stayExtrasAmount: 360
+stayRoomAmount: 864.0
+totalStayAmountWoDiscount: 1440.0
+totalStayAmount: 1224.0
+finalAmountWoDiscount: 1728.0
+finalAmount: 1468.8
+extraDiscount: null
+extraKidsDiscount: null
+extraStartAt: null
+extraEndAt: null
+eventDuration: 0
+events: []
}
2 => App\DTO\ExtraStayDTO {#1645
-marginRate: 20
+extraId: 90
+name: "Pension complète"
+description: null
+stayTotalNights: 4
+dailyAdults: 160
+dailyTeens: 0
+dailyChildren: 0
+dailyBabies: 0
+adultsExtrasAmount: 640
+kidsExtrasAmount: 0
+stayExtrasAmount: 640
+stayRoomAmount: 864.0
+totalStayAmountWoDiscount: 1720.0
+totalStayAmount: 1504.0
+finalAmountWoDiscount: 2064.0
+finalAmount: 1804.8
+extraDiscount: null
+extraKidsDiscount: null
+extraStartAt: null
+extraEndAt: null
+eventDuration: 0
+events: []
}
3 => App\DTO\ExtraStayDTO {#1644
-marginRate: 20
+extraId: 92
+name: "Formule "Tout Inclus""
+description: null
+stayTotalNights: 4
+dailyAdults: 240
+dailyTeens: 0
+dailyChildren: 0
+dailyBabies: 0
+adultsExtrasAmount: 960
+kidsExtrasAmount: 0
+stayExtrasAmount: 960
+stayRoomAmount: 864.0
+totalStayAmountWoDiscount: 2040.0
+totalStayAmount: 1824.0
+finalAmountWoDiscount: 2448.0
+finalAmount: 2188.8
+extraDiscount: null
+extraKidsDiscount: null
+extraStartAt: null
+extraEndAt: null
+eventDuration: 0
+events: []
}
]
-specialExtras: []
-discounts: array:1 [
0 => array:14 [
"id" => 239
"title" => "FABULOUS OFFER 20%"
"description" => null
"reference" => "FABULOUS OFFER 20%"
"type" => "Special"
"rate" => 20
"extra_rate" => null
"start" => "23/02/2025"
"end" => "30/04/2025"
"kids_rate" => ""
"partial" => false
"selected_rooms" => []
"stayroom_amount_before" => 1080.0
"stayroom_amount_after" => 864.0
]
]
-error: []
}
]
}