fix: populate destination cost unit from assigned hotel

This commit is contained in:
Björn Fromme
2025-10-07 11:19:42 +02:00
parent 9fd0d9b5cb
commit 0b56fc8ef1
5 changed files with 135 additions and 20 deletions
-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;
}
}