It would be nicer to use a macro here : http://blog.lyrixx.info/2013/01/31/symfony2-snippet-to-render-all-form-error.html