Skip to content

[NFR]: Ability to assign data to entity using the standalone Validation class #16800

@raicabogdan

Description

@raicabogdan

Is your feature request related to a problem? Please describe.
Looking at the documentation, it allows you to assign a specific entity to the validation process, however, no data is being assign to the entity object, rather it is only used for retrieval of existing entity data if fields are matching.
While this is fine, usually you don't use the entity for that purpose when using a form or a validation, but rather want to retrieve the validation data into the entity. Similar to how the Form class handles the data binding.

This does work if the entity doesn't have any field properties, though it just fails back to retrieving the value from the validation data. So you can argue that this is failing as well since its not using the entity.

There are also some inconsistencies within validation when user tries to use the entity within events for example to manipulate certain data.

Describe the solution you'd like
Need to ensure the binding of the data and entity happens similar to how the Form class handles the data binding.

Additional context
A draft solution incoming soon

Metadata

Metadata

Assignees

No one assigned

    Labels

    5.0The issues we want to solve in the 5.0 releasenew feature requestPlanned Feature or New Feature Request
    No fields configured for Feature.

    Projects

    Status
    Released

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions