mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
add validation to accompanying periods
This commit is contained in:
@@ -134,4 +134,11 @@ class AccompanyingPeriodParticipation
|
||||
{
|
||||
return $this->endDate === null;
|
||||
}
|
||||
|
||||
private function checkSameStartEnd()
|
||||
{
|
||||
if($this->endDate == $this->startDate) {
|
||||
$this->accompanyingPeriod->removeParticipation($this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user