Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2.5.6, 3.0.0-beta3
-
None
Description
Default rendering of the field definition doesn't work.
{# Default rendering #} {% for child in field_definition %} {# Iterable children means collections, they are handled in field_types.html.twig #} {% if not child.rendered and child is not iterable %} <div{% if group_class is not empty %} class="{{ group_class }}"{% endif %}> {{- form_label(child) -}} {{- form_errors(child) -}} {{- form_widget(child) -}} </div> {% endif %} {% endfor %}
The child is not iterable expression in the code snippet above is always false, because child is instance of Symfony\Component\Form\FormView (which implements \IteratorAggregate)
Moreover group_class variable is not defined.