Open
Description
Hi,
I use a collection type in a form, my problem is that widgets of the collection are always added to view.
I try to test with twig that the array is empty to hide widgets but that's not fix the problem.
{% if form.taches is defined%}
{% for tache in form.taches %}
<li>{{ form_widget(tache.libelle) }}</li>
{% endfor %}
{% endif %}