mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-30 14:06:13 +00:00
add missing keys to blank docgen person normalization
This commit is contained in:
parent
27e74014ce
commit
472bc3f35d
@ -245,6 +245,7 @@ class PersonDocGenNormalizer implements
|
||||
'deathdate' => DateTimeInterface::class,
|
||||
'gender', 'maritalStatus',
|
||||
'maritalStatusDate' => DateTimeInterface::class,
|
||||
'maritalStatusComment',
|
||||
'email', 'firstPhoneNumber', 'fixPhoneNumber', 'mobilePhoneNumber', 'nationality',
|
||||
'placeOfBirth', 'memo', 'numberOfChildren',
|
||||
'address' => Address::class,
|
||||
@ -256,7 +257,7 @@ class PersonDocGenNormalizer implements
|
||||
|
||||
$data = $normalizer->normalize($attributes, $format, $context);
|
||||
|
||||
//$data['resources'] = [];
|
||||
$data['resources'] = [];
|
||||
|
||||
if ($context['docgen:person:with-relations'] ?? false) {
|
||||
$data['relations'] = [];
|
||||
|
@ -53,6 +53,7 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
|
||||
'address' => '@ignored',
|
||||
'maritalStatus' => '',
|
||||
'maritalStatusDate' => ['short' => '', 'long' => ''],
|
||||
'maritalStatusComment' => '',
|
||||
'email' => '',
|
||||
'firstPhoneNumber' => '',
|
||||
'fixPhoneNumber' => '',
|
||||
@ -62,6 +63,7 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
|
||||
'memo' => '',
|
||||
'numberOfChildren' => '',
|
||||
'age' => '@ignored',
|
||||
'resources' => [],
|
||||
];
|
||||
|
||||
private NormalizerInterface $normalizer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user