Implement 'at date' for display of service and user job in accompanying period work entities (for twig templates) -> vue component still to fix

This commit is contained in:
2024-01-08 16:38:07 +01:00
parent 2149ef1cb4
commit d62e9ce269
3 changed files with 5 additions and 5 deletions

View File

@@ -403,7 +403,7 @@ class AccompanyingPeriodWork implements AccompanyingPeriodLinkedWithSocialIssues
{
$users = $this->referrersHistory
->filter(fn (AccompanyingPeriodWorkReferrerHistory $h) => null === $h->getEndDate())
->map(fn (AccompanyingPeriodWorkReferrerHistory $h) => $h->getUser())
->map(fn (AccompanyingPeriodWorkReferrerHistory $h) => ['user' => $h->getUser(), 'startDate' => $h->getStartDate()])
->getValues()
;