Skip to content

Add getFieldValue($object) and setFieldValue($object, $value) to ClassMetadata #426

@GromNaN

Description

@GromNaN

Feature Request

What

Since doctrine/orm#11659, the way to access the value of a field has changed. This change required a patch in Symfony symfony/symfony#59887 that then have to be patched again for ODM symfony/symfony#60953

In order to establish a safe way to get and set the property values of an object through its class metadata, the methods getFieldValue($object) and setFieldValue($object, $value) need to be defined in the interface.

This method already exist in implementations:

Why

Accessing a field value need to be in a common interface, that all Doctrine ORM/ODM projects can implement.

How

Adding a method to an interface is a breaking change; in order to introduce this new method, a new interface can be introduced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions