Skip to content

[PropertyInfo] [Validator] the new auto mapping is not working with non found property #31796

@elhadraoui

Description

@elhadraoui

Symfony version(s) affected: 4.3.0

Description
When we are using a function like public function addSomething() and no property with name: something not existing the exception "The entity has no field with name ..." is thrown.

How to reproduce
Create an entity with function addSomething() without property something and enable the auto mapping for validation.

Possible Solution

Additional context

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