Skip to content

Serializers are no longer applying additional fields #2681

Closed
@trsteel88

Description

@trsteel88

Serializers no longer appear to be adding additional fields in the latest Symfony version (4.2.5)

Is this an issue with the bundle or Symfony?

While trying to debug the issue, I noticed that the supportsNormalization method no longer receives the object

public function supportsNormalization($data, $format = null)
    {
        dump($data);
        return $data instanceof MyEntity;
    }

It only seems to get the attributes on the entity, not the entity itself.

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