mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
ChillPersonBundle: add employmentStatus property to Person
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user