Tag
Validation
2 posts tagged Validation.

06/11/2015
Adding a form error from a controller in Symfony
Some checks cannot live in a constraint because they need something the form does not know about. FormError attaches the message to a field, or to the form itself, so it renders where the user is looking.

08/20/2014
invalid_message: what a failed transformer shows
A transformer that cannot convert what was typed throws, and Symfony turns that into a message the user reads. Left alone it says nothing useful; invalid_message is where you replace it.