Closed
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | no |
Symfony version | 3.2 |
The CustomNormalizer
simply does new $class();
to create the object to denormalize. Would be useful to be able to populate an existing object.
The use case for this is likely the same as other denormalization use cases: sometimes you want to pre-fill fields that are not updated by the serializer. Especially if your custom denormalization process depends on those pre-filled fields.