fix: populate destination cost unit from assigned hotel

This commit is contained in:
Björn Fromme committed 2025-10-07 11:19:42 +02:00
1 parent 9fd0d9b5cb
commit 0b56fc8ef1
5 files changed
+135 -20

No files matched your search

-15
View File
@@ -24,8 +24,6 @@ class DestinationDto
private array $pickups = [];
private ?string $costUnit = null;
public static function fromEntity(Destination $destination): static
{
$instance = new static();
@@ -41,7 +39,6 @@ class DestinationDto
->setHotelBusProId($destination->getHotelBusProId())
->setCountry($destination->getCountry())
->setPickups($pickupIds)
->setCostUnit($destination->getCostUnit())
;
return $instance;
@@ -118,16 +115,4 @@ class DestinationDto
return $this;
}
public function getCostUnit(): ?string
{
return $this->costUnit;
}
public function setCostUnit(?string $costUnit): static
{
$this->costUnit = $costUnit;
return $this;
}
}