Skip to content

[SymfonyValidator] @Assert\Valid() does not work #2

Description

@patrykbaszak

Currently, validation works correctly, i.e. it always validates nested values, but the original Symfony Validator does not - nested objects are only validated if the parent had @Assert\Valid() attributes. Therefore, it needs improvement.

In a call to the init() method of the SymfonyValidator modifier, we can create a list of all properties that can be validated, and then use the modifyPropertyExpression() method to check if that property is on that list.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions