diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index e0bc73990..b3a3f5628 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -284,10 +284,12 @@ class Person implements HasCenterInterface * * @uses AccompanyingPeriod::addPerson */ - public function addAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod) : void + public function addAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod): self { $accompanyingPeriod->addPerson($this); $this->accompanyingPeriods->add($accompanyingPeriod); + + return $this; } /** diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig index 54b03162b..1dfc72198 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig @@ -5,6 +5,9 @@ {% block title %}{{ 'Person accompanying period - %name%'|trans({ '%name%' : person.__toString}) }}{% endblock title %} {% block personcontent %} + +