feat: add cms product code for future use

This commit is contained in:
fromme committed 2026-09-03 17:40:29 +02:00
1 parent 198fbfe6a2
commit 976b30ccc0
4 files changed
+54 -3

No files matched your search

+15
View File
@@ -35,6 +35,9 @@ class Accommodation implements BlameableEntityInterface, TimestampableEntityInte
#[ORM\Column(length: 16, nullable: true)]
private ?string $cmsCode = null;
#[ORM\Column(length: 16, nullable: true)]
private ?string $productCode = null;
/**
* @var Collection<int, AccommodationPrice>
*/
@@ -122,6 +125,18 @@ class Accommodation implements BlameableEntityInterface, TimestampableEntityInte
return $this->cmsCode ?? $this->calendarCode;
}
public function getProductCode(): ?string
{
return $this->productCode;
}
public function setProductCode(?string $productCode): self
{
$this->productCode = $productCode;
return $this;
}
/**
* @return Collection<int, AccommodationPrice>
*/
+6 -2
View File
@@ -24,10 +24,14 @@ class AccommodationType extends AbstractType
'label' => 'Name',
])
->add('calendarCode', TextType::class, [
'label' => 'Code für Kalender',
'label' => 'Kalender-Code in BusPro',
])
->add('cmsCode', TextType::class, [
'label' => 'Code für CMS-Daten',
'label' => 'Hotel-Code in TYPO3',
'required' => false,
])
->add('productCode', TextType::class, [
'label' => 'Produkt-Code in TYPO3',
'required' => false,
])
->add('maxAdolescentAge', IntegerType::class, [