mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
person denormalization: use object to populate if any
This commit is contained in:
parent
e0bed186b8
commit
cdc335372f
@ -63,7 +63,7 @@ class PersonJsonNormalizer implements
|
||||
{
|
||||
$person = $this->extractObjectToPopulate($type, $context);
|
||||
|
||||
if (array_key_exists('id', $data)) {
|
||||
if (array_key_exists('id', $data) && null === $person) {
|
||||
$person = $this->repository->find($data['id']);
|
||||
|
||||
if (null === $person) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user