Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Serializer] regression with attribute serialization #54983

Closed
@bendavies

Description

@bendavies

Symfony version(s) affected

6.4.7

Description

There appears to be a regression in v6.4.7 with serializing "nested" attributes with a property path.

How to reproduce

Given a serialization config like:

App\Entity\Foo:
  attributes:
    bar.id:
      serialized_name: bar_id
      groups: ['read']

where Bar is a relation on Foo, bar_id is not serialized in in v6.4.7, but was in v6.4.6.

Possible Solution

No response

Additional Context

#52917 seems suspect to me.

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