Skip to content

Commit 242a892

Browse files
committed
Unset ID before calling parent denormalizer
1 parent 2f5e491 commit 242a892

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Serializer/ItemNormalizer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ public function denormalize(mixed $data, string $class, ?string $format = null,
6868
}
6969
}
7070

71+
if (isset($data['id'])) {
72+
unset($data['id']);
73+
}
74+
7175
return parent::denormalize($data, $class, $format, $context);
7276
}
7377

0 commit comments

Comments
 (0)