mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-28 13:06:13 +00:00
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:
parent
f04ef3c3e3
commit
723ca8db6a
5
.changes/unreleased/Fixed-20241114-151730.yaml
Normal file
5
.changes/unreleased/Fixed-20241114-151730.yaml
Normal 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: ""
|
@ -209,7 +209,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
/**
|
/**
|
||||||
* The person's deathdate.
|
* The person's deathdate.
|
||||||
*/
|
*/
|
||||||
#[Assert\Date]
|
|
||||||
#[Assert\GreaterThanOrEqual(propertyPath: 'birthdate')]
|
#[Assert\GreaterThanOrEqual(propertyPath: 'birthdate')]
|
||||||
#[Assert\LessThanOrEqual('today')]
|
#[Assert\LessThanOrEqual('today')]
|
||||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATE_IMMUTABLE, nullable: true)]
|
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATE_IMMUTABLE, nullable: true)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user