How to get error message of each field from form object in symfony2?
<p>I followed this tutorial <a href="http://symfony.com/doc/current/forms.html" rel="nofollow noreferrer">http://symfony.com/doc/current/forms.html</a> and I rendered my insert form perfectly but only one problem that I can't solve:</p>

<p>I want to show all error of each field when the form is not valid. This is example code:</p>

<pre><code>    $form-&gt;handleRequest($request);
    if (false === $form-&gt;isValid()) {
        // How to get all error message of each field ??
    }
</code></pre>

<p>This look like a very basic info but I can not find any guide to solve this problem. Hope someone can help me.</p>

<p>Thanks. </p>