You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is possible now that #11657 was merged. You can access the violation for a form error using the getCause() method, and the constraint that caused a violation using getConstraint():
Hi,
As I wrote in google groups :
https://groups.google.com/d/topic/symfony2/2yc6Ox3WSYc/discussion
Currently, it is impossible to know which constraint failed when validating a form.
But it could be very helpful to correct this lack to handle constraints failed in different way.
What do you think ? Which way to implement this feature ?
The text was updated successfully, but these errors were encountered: