mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Merge branch 'fix-accompanying-period-opening' into bootstrap-api
This commit is contained in:
@@ -401,7 +401,7 @@ class AccompanyingPeriod
|
||||
{
|
||||
$participation = $this->getOpenParticipationContainsPerson($person);
|
||||
|
||||
if (! null === $participation) {
|
||||
if ($participation instanceof AccompanyingPeriodParticipation) {
|
||||
$participation->setEndDate(new \DateTimeImmutable('now'));
|
||||
}
|
||||
|
||||
|
@@ -390,7 +390,7 @@ class Person implements HasCenterInterface
|
||||
*
|
||||
* @deprecated since 1.1 use `getOpenedAccompanyingPeriod instead
|
||||
*/
|
||||
public function getCurrentAccompanyingPeriod() : AccompanyingPeriod
|
||||
public function getCurrentAccompanyingPeriod() : ?AccompanyingPeriod
|
||||
{
|
||||
return $this->getOpenedAccompanyingPeriod();
|
||||
}
|
||||
@@ -1011,7 +1011,7 @@ class Person implements HasCenterInterface
|
||||
* By default, the addresses are ordered by date, descending (the most
|
||||
* recent first)
|
||||
*/
|
||||
public function getAddresses(): ArrayCollection
|
||||
public function getAddresses(): Collection
|
||||
{
|
||||
return $this->addresses;
|
||||
}
|
||||
|
Reference in New Issue
Block a user