mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
add budget to docgen
This commit is contained in:
@@ -191,6 +191,7 @@ class AccompanyingPeriodContext implements
|
||||
'groups' => 'docgen:read',
|
||||
'docgen:person:with-household' => true,
|
||||
'docgen:person:with-relations' => true,
|
||||
'docgen:person:with-budget' => true,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@@ -114,7 +114,10 @@ class PersonContext implements DocGeneratorContextWithAdminFormInterface
|
||||
$data = array_merge($data, $this->baseContextData->getData());
|
||||
$data['person'] = $this->normalizer->normalize($entity, 'docgen', [
|
||||
'docgen:expects' => Person::class,
|
||||
'groups' => ['docgen:read', 'docgen:person:with-household', 'docgen:person:with-relations'],
|
||||
'groups' => ['docgen:read'],
|
||||
'docgen:person:with-household' => true,
|
||||
'docgen:person:with-relations' => true,
|
||||
'docgen:person:with-budget' => true,
|
||||
]);
|
||||
|
||||
return $data;
|
||||
|
Reference in New Issue
Block a user