mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
person: create a person with address (and household without position (remove required position for household member)
This commit is contained in:
@@ -116,12 +116,18 @@ class MembersEditorNormalizer implements DenormalizerAwareInterface, Denormalize
|
||||
$format,
|
||||
$context
|
||||
);
|
||||
$position = $this->denormalizer->denormalize(
|
||||
$concerned['position'] ?? null,
|
||||
Position::class,
|
||||
$format,
|
||||
$context
|
||||
);
|
||||
|
||||
if (\array_key_exists('position', $concerned)) {
|
||||
$position = $this->denormalizer->denormalize(
|
||||
$concerned['position'] ?? null,
|
||||
Position::class,
|
||||
$format,
|
||||
$context
|
||||
);
|
||||
} else {
|
||||
$position = null;
|
||||
}
|
||||
|
||||
$startDate = $this->denormalizer->denormalize(
|
||||
$concerned['start_date'] ?? null,
|
||||
DateTimeImmutable::class,
|
||||
|
Reference in New Issue
Block a user