Skip to content

[Serializer] CustomNormalizer Doesn't Support object_to_populate #21715

@chrisguitarguy

Description

@chrisguitarguy
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions