From c4e07f0068805554512a410db09f503f09ae85c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 23 Oct 2025 17:50:39 +0200 Subject: [PATCH] fix: include cost unit when duplicating destination --- src/Model/DestinationDto.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Model/DestinationDto.php b/src/Model/DestinationDto.php index c2a9179..9d1fe39 100644 --- a/src/Model/DestinationDto.php +++ b/src/Model/DestinationDto.php @@ -22,6 +22,8 @@ class DestinationDto #[Assert\NotBlank(message: 'Bitte angeben')] private ?string $hotelBusProId = null; + private ?string $costUnit = null; + private array $pickups = []; public static function fromEntity(Destination $destination): static @@ -39,6 +41,7 @@ class DestinationDto ->setHotelBusProId($destination->getHotelBusProId()) ->setCountry($destination->getCountry()) ->setPickups($pickupIds) + ->setCostUnit($destination->getCostUnit()); ; return $instance; @@ -104,6 +107,18 @@ class DestinationDto return $this; } + public function getCostUnit(): ?string + { + return $this->costUnit; + } + + public function setCostUnit(?string $costUnit): static + { + $this->costUnit = $costUnit; + + return $this; + } + public function getPickups(): array { return $this->pickups;