Adding MaritalStatus in db

This commit is contained in:
Marc Ducobu
2015-08-12 15:52:17 +02:00
parent 31e734f2c7
commit 3f9f58030c
7 changed files with 272 additions and 16 deletions

View File

@@ -46,10 +46,10 @@ class Person implements HasCenterInterface {
/** @var string The person's place of birth */
private $placeOfBirth = '';
/** @var \CL\Chill\MainBundle\Entity\Country The person's country of birth */
/** @var \Chill\MainBundle\Entity\Country The person's country of birth */
private $countryOfBirth;
/** @var \CL\Chill\MainBundle\Entity\Country The person's nationality */
/** @var \Chill\MainBundle\Entity\Country The person's nationality */
private $nationality;
/** @var string The person's gender */
@@ -58,7 +58,8 @@ class Person implements HasCenterInterface {
const MALE_GENDER = 'man';
const FEMALE_GENDER = 'woman';
//TO-ADD : maritalStatus
/** @var \Chill\PersonBundle\Entity\MaritalStatus The marital status of the person */
private $maritalStatus;
//TO-ADD : address
@@ -395,6 +396,29 @@ class Person implements HasCenterInterface {
return $this->memo;
}
/**
* Set maritalStatus
*
* @param \Chill\PersonBundle\Entity\MaritalStatus $maritalStatus
* @return Person
*/
public function setMaritalStatus($maritalStatus)
{
$this->maritalStatus = $maritalStatus;
return $this;
}
/**
* Get maritalStatus
*
* @return \Chill\PersonBundle\Entity\MaritalStatus
*/
public function getMaritalStatus()
{
return $this->maritalStatus;
}
/**
* Set email
*