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
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