Controller action to move members of an household

This commit is contained in:
2021-05-31 20:42:07 +02:00
parent ace3b1969e
commit 041b1dfc51
12 changed files with 356 additions and 48 deletions

View File

@@ -29,12 +29,12 @@ class HouseholdMember
private ?Position $position = null;
/**
* @ORM\Column(type="date", nullable=true, options={"default": null})
* @ORM\Column(type="date_immutable", nullable=true, options={"default": null})
*/
private ?\DateTimeImmutable $startDate = null;
/**
* @ORM\Column(type="date", nullable= true, options={"default": null})
* @ORM\Column(type="date_immutable", nullable= true, options={"default": null})
*/
private ?\DateTimeImmutable $endDate = null;
@@ -95,24 +95,24 @@ class HouseholdMember
return $this;
}
public function getStartDate(): ?\DateTimeInterface
public function getStartDate(): ?\DateTimeImmutable
{
return $this->startDate;
}
public function setStartDate(\DateTimeInterface $startDate): self
public function setStartDate(\DateTimeImmutable $startDate): self
{
$this->startDate = $startDate;
return $this;
}
public function getEndDate(): ?\DateTimeInterface
public function getEndDate(): ?\DateTimeImmutable
{
return $this->endDate;
}
public function setEndDate(\DateTimeInterface $endDate): self
public function setEndDate(\DateTimeImmutable $endDate): self
{
$this->endDate = $endDate;
@@ -150,8 +150,7 @@ class HouseholdMember
}
$this->person = $person;
$person->addHouseholdParticipation($this);
$this->person->addHouseholdParticipation($this);
return $this;
}