fix: allow null for teamer date of birth

This commit is contained in:
Björn Fromme
2024-10-28 17:44:00 +01:00
parent 3aad618eea
commit 1c59b1d564
2 changed files with 32 additions and 1 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ class Teamer implements TimestampableEntityInterface
#[Assert\NotBlank(message: 'Bitte gib dein Geschlecht an', groups: ['profile'])]
private ?string $gender = null;
#[ORM\Column(type: Types::DATE_IMMUTABLE)]
#[ORM\Column(type: Types::DATE_IMMUTABLE, nullable: true)]
#[Assert\NotNull(message: 'Bitte gib dein Geburtsdatum an', groups: ['profile'])]
private ?\DateTimeImmutable $dateOfBirth = null;