Remove date validation on deathDate

This change removes the `Assert\Date` validation on the `deathDate` property in the `Person` entity. The adjustment allows for more flexible input by not strictly enforcing the date format, which can resolve issues where the date string validation was previously causing errors.
This commit is contained in:
Julien Fastré 2024-11-14 15:17:40 +01:00
parent f04ef3c3e3
commit 723ca8db6a
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 5 additions and 1 deletions

View File

@ -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: ""

View File

@ -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)]