improve serializers

This commit is contained in:
2021-04-27 22:48:48 +02:00
parent f7c508939c
commit b4583fc6dc
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ class PersonNormalizer implements
'id' => $person->getId(),
'firstName' => $person->getFirstName(),
'lastName' => $person->getLastName(),
'birthdate' => $person->getBirthdate(),
'birthdate' => $person->getBirthdate() ? $this->normalizer->normalize($person->getBirthdate()) : null,
'center' => $this->normalizer->normalize($person->getCenter())
];
}