ChillPersonBundle: add employmentStatus property to Person

This commit is contained in:
Christophe Siraut
2024-11-21 10:08:52 +01:00
parent 1f96f76f87
commit 110db30748
17 changed files with 441 additions and 4 deletions

View File

@@ -311,6 +311,13 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
#[PhonenumberConstraint(type: 'mobile')]
private ?PhoneNumber $mobilenumber = null;
/**
* The person's professional status.
*/
#[ORM\ManyToOne(targetEntity: EmploymentStatus::class)]
#[ORM\JoinColumn(nullable: true)]
private ?EmploymentStatus $employmentStatus = null;
/**
* The person's nationality.
*/
@@ -1033,6 +1040,11 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
return $this->fullnameCanonical;
}
public function getEmploymentStatus(): ?EmploymentStatus
{
return $this->employmentStatus;
}
public function getGender(): ?Gender
{
return $this->gender;
@@ -1551,6 +1563,13 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
return $this;
}
public function setEmploymentStatus(?EmploymentStatus $employmentStatus): self
{
$this->employmentStatus = $employmentStatus;
return $this;
}
public function setGenderComment(CommentEmbeddable $genderComment): self
{
$this->genderComment = $genderComment;