store an end date instead of a string when person is removed from a participation

This commit is contained in:
Julien Fastré 2022-10-08 01:10:00 +02:00
parent 6585662087
commit 8cf166f7ea

View File

@ -1480,7 +1480,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
$participation = $this->participationsContainAccompanyingPeriod($accompanyingPeriod); $participation = $this->participationsContainAccompanyingPeriod($accompanyingPeriod);
if (!null === $participation) { if (!null === $participation) {
$participation->setEndDate(DateTimeImmutable::class); $participation->setEndDate(new DateTime());
$this->accompanyingPeriodParticipations->removeElement($participation); $this->accompanyingPeriodParticipations->removeElement($participation);
} }
} }