mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
Feature: add thirdParty choice in docgen context - use array_values
This commit is contained in:
@@ -117,14 +117,16 @@ class AccompanyingPeriodWorkEvaluationContext implements
|
||||
$this->accompanyingPeriodWorkContext->buildPublicForm($builder, $template, $entity->getAccompanyingPeriodWork());
|
||||
|
||||
$thirdParties = array_merge(
|
||||
array_filter($entity->getAccompanyingPeriodWork()->getThirdParties()->toArray()),
|
||||
array_filter([$entity->getAccompanyingPeriodWork()->getHandlingThierParty()]),
|
||||
array_filter(array_values($entity->getAccompanyingPeriodWork()->getThirdParties()->toArray())),
|
||||
array_filter(array_values([$entity->getAccompanyingPeriodWork()->getHandlingThierParty()])),
|
||||
array_filter(
|
||||
array_map(
|
||||
fn (Resource $r): ?ThirdParty => $r->getThirdParty(),
|
||||
$entity->getAccompanyingPeriodWork()->getAccompanyingPeriod()->getResources()->filter(
|
||||
static fn (Resource $r): bool => null !== $r->getThirdParty()
|
||||
)->toArray()
|
||||
array_values(
|
||||
array_map(
|
||||
fn (Resource $r): ?ThirdParty => $r->getThirdParty(),
|
||||
$entity->getAccompanyingPeriodWork()->getAccompanyingPeriod()->getResources()->filter(
|
||||
static fn (Resource $r): bool => null !== $r->getThirdParty()
|
||||
)->toArray()
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user