Skip to content

[VarExporter] Mapping Expception - Ignore can only be added on methods beginning with "get", "is", "has" or "set".` #54477

@sgloe

Description

@sgloe

Symfony version(s) affected

6.4.6

Description

After upgrading symfony/var-exporter from 6.4.4 to 6.4.6 I get an error during my serialization process.

Ignore on "Proxies\__CG__\App\Entity\Artist::__setInitialized()" cannot be added. Ignore can only be added on methods beginning with "get", "is", "has" or "set".

vendor/symfony/serializer/Mapping/Loader/AttributeLoader.php:172

How to reproduce

Use Serializer and serialize some objects with relations and setting the context.

Possible Solution

No response

Additional Context

No response

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