Can I set a general form error with callback validator? I do not want to set it to a specific field, but rather to a form in general errors.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you have to create what we call a class constraint, which will be applied to the
data_classitself, not to a specific field: http://symfony.com/doc/2.0/book/validation.html#classes