8000 Forms, DataTransformer: Allow multiple invalid_messages when using data transformers · Issue #22501 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Forms, DataTransformer: Allow multiple invalid_messages when using data transformers #22501
Closed
@twharmon

Description

@twharmon
Q A
Bug report? no
Feature request? yes
BC Break report? ?
RFC? ?
Symfony version 3.2.7

In the documentation for data transformers, the input is validated in the IssueToNumberTransformer class, and the error message is set in the TaskType class. What if there are multiple types of invalid input, can there be a way to have multiple error messages?

I know this can be done with Symfony\Component\Validator\Constraints in the Entity class, but since validation must also take place in the data transformer, I think there should be a way to have more control over the error messages.

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

      0