Hi Francesco,

First of all, I forgot to mention that this all is about Symfony 2.

I've set up a quick test snippet to gist: https://gist.github.com/944930 . 
Controller, form and data object are all there in one file. Template is 
something I didn't include because it's only {{ contents }} and {{ 
form_widget(form) }}

Validation errors are output correctly and in clear text with form_widget() 
or form_errors(), so the constraints are validated properly. Only 
$form->getErrors() in a controller gives an empty array.

I'd like to use $form->getErrors() in a controller to customize some other 
components on a page to match the errors, as well as to feed errors to a 
logger. 

Best regards,
Ville

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to