mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 06:26:15 +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,
|
'deathdate' => DateTimeInterface::class,
|
||||||
'gender', 'maritalStatus',
|
'gender', 'maritalStatus',
|
||||||
'maritalStatusDate' => DateTimeInterface::class,
|
'maritalStatusDate' => DateTimeInterface::class,
|
||||||
|
'maritalStatusComment',
|
||||||
'email', 'firstPhoneNumber', 'fixPhoneNumber', 'mobilePhoneNumber', 'nationality',
|
'email', 'firstPhoneNumber', 'fixPhoneNumber', 'mobilePhoneNumber', 'nationality',
|
||||||
'placeOfBirth', 'memo', 'numberOfChildren',
|
'placeOfBirth', 'memo', 'numberOfChildren',
|
||||||
'address' => Address::class,
|
'address' => Address::class,
|
||||||
@ -256,7 +257,7 @@ class PersonDocGenNormalizer implements
|
|||||||
|
|
||||||
$data = $normalizer->normalize($attributes, $format, $context);
|
$data = $normalizer->normalize($attributes, $format, $context);
|
||||||
|
|
||||||
//$data['resources'] = [];
|
$data['resources'] = [];
|
||||||
|
|
||||||
if ($context['docgen:person:with-relations'] ?? false) {
|
if ($context['docgen:person:with-relations'] ?? false) {
|
||||||
$data['relations'] = [];
|
$data['relations'] = [];
|
||||||
|
@ -53,6 +53,7 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
|
|||||||
'address' => '@ignored',
|
'address' => '@ignored',
|
||||||
'maritalStatus' => '',
|
'maritalStatus' => '',
|
||||||
'maritalStatusDate' => ['short' => '', 'long' => ''],
|
'maritalStatusDate' => ['short' => '', 'long' => ''],
|
||||||
|
'maritalStatusComment' => '',
|
||||||
'email' => '',
|
'email' => '',
|
||||||
'firstPhoneNumber' => '',
|
'firstPhoneNumber' => '',
|
||||||
'fixPhoneNumber' => '',
|
'fixPhoneNumber' => '',
|
||||||
@ -62,6 +63,7 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
|
|||||||
'memo' => '',
|
'memo' => '',
|
||||||
'numberOfChildren' => '',
|
'numberOfChildren' => '',
|
||||||
'age' => '@ignored',
|
'age' => '@ignored',
|
||||||
|
'resources' => [],
|
||||||
];
|
];
|
||||||
|
|
||||||
private NormalizerInterface $normalizer;
|
private NormalizerInterface $normalizer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user