Skip to content

[Validator] Expression Constraint error #49910

@Erwui

Description

@Erwui

Symfony version(s) affected

6.2.8

Description

Since 6.2.8 version the constraint "Expression" throw this exception:

Symfony\Component\Validator\Exception\ValidatorException: Constraint validator "validator.expression" does not exist or is not enabled. Check the "validatedBy" method in your constraint class "Symfony\Component\Validator\Constraints\Expression".

How to reproduce

Use an Assert\Expression in an Entity.
Try to validate an entity with validator->validate()

Possible Solution

No response

Additional Context

No response

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