mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 14:36:13 +00:00
store an end date instead of a string when person is removed from a participation
This commit is contained in:
parent
6585662087
commit
8cf166f7ea
@ -1480,7 +1480,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
$participation = $this->participationsContainAccompanyingPeriod($accompanyingPeriod);
|
||||
|
||||
if (!null === $participation) {
|
||||
$participation->setEndDate(DateTimeImmutable::class);
|
||||
$participation->setEndDate(new DateTime());
|
||||
$this->accompanyingPeriodParticipations->removeElement($participation);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user