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 %} + +

{{ 'Accompanying period list'|trans }}

+ diff --git a/src/Bundle/ChillPersonBundle/migrations/Version20210329144338.php b/src/Bundle/ChillPersonBundle/migrations/Version20210329144338.php index a0cdf39cd..f8ae84adc 100644 --- a/src/Bundle/ChillPersonBundle/migrations/Version20210329144338.php +++ b/src/Bundle/ChillPersonBundle/migrations/Version20210329144338.php @@ -16,7 +16,7 @@ final class Version20210329144338 extends AbstractMigration { public function getDescription() : string { - return 'Complete accompanying period table'; + return 'Complete AccompanyingPeriod table'; } public function up(Schema $schema) : void