2017-02-23 43 views

回答

0

發佈後不久就想到了這一點,我需要error.cause.constraint.groups。像這樣:

{% for error in form.vars.errors %} 
    {% for group in error.cause.constraint.groups %} 
     {{ group }} 
    {% endfor %} 
{% endfor %} 
相關問題