handle children of closing motive for isCanceledAccompanyingPeriod

This commit is contained in:
Julie Lenaerts 2023-09-18 15:16:59 +02:00
parent 3816d68e18
commit 9b061eeaae

View File

@ -90,7 +90,7 @@ class ClosingMotive
}
$this->children->add($child);
$child->setParent($this);
$child->setParent($this)->setIsCanceledAccompanyingPeriod($this->getIsCanceledAccompanyingPeriod());
return $this;
}
@ -239,6 +239,10 @@ class ClosingMotive
{
$this->isCanceledAccompanyingPeriod = $isCanceledAP;
foreach ($this->getChildren() as $child) {
$child->setIsCanceledAccompanyingPeriod($isCanceledAP);
}
return $this;
}
}