diff --git a/.changes/unreleased/Fixed-20241114-151730.yaml b/.changes/unreleased/Fixed-20241114-151730.yaml new file mode 100644 index 000000000..09bc5801a --- /dev/null +++ b/.changes/unreleased/Fixed-20241114-151730.yaml @@ -0,0 +1,5 @@ +kind: Fixed +body: Remove validation of date string on deathDate +time: 2024-11-14T15:17:30.804640253+01:00 +custom: + Issue: "" diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index 3bdfba767..4a0664652 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -209,7 +209,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI /** * The person's deathdate. */ - #[Assert\Date] #[Assert\GreaterThanOrEqual(propertyPath: 'birthdate')] #[Assert\LessThanOrEqual('today')] #[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATE_IMMUTABLE, nullable: true)]