mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
fix some person issues
This commit is contained in:
@@ -244,6 +244,8 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
* @Assert\Date(
|
||||
* groups={"general", "creation"}
|
||||
* )
|
||||
* @Assert\GreaterThan(propertyPath="birthDate")
|
||||
* @Assert\LessThanOrEqual("today")
|
||||
*/
|
||||
private ?DateTimeImmutable $deathdate = null;
|
||||
|
||||
@@ -1774,7 +1776,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setNumberOfChildren(int $numberOfChildren): self
|
||||
public function setNumberOfChildren(?int $numberOfChildren): self
|
||||
{
|
||||
$this->numberOfChildren = $numberOfChildren;
|
||||
|
||||
|
Reference in New Issue
Block a user