Skip to content

Commit 1ee194d

Browse files
committed
minor #9610 Use "children" property instead of "child" (liviubalan)
This PR was submitted for the 3.4 branch but it was merged into the 2.7 branch instead (closes #9610). Discussion ---------- Use "children" property instead of "child" Fix error: Neither the property "child" nor one of the methods "child()", "getchild()"/"ischild()"/"haschild()" or "__call()" exist and have public access in class "Symfony\Component\Form\FormView". <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 26349df Use "children" property instead of "child"
2 parents c021ae1 + 26349df commit 1ee194d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form/form_customization.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ You can also apply a form theme to a specific child of your form:
337337

338338
.. code-block:: html+twig
339339

340-
{% form_theme form.child 'form/fields.html.twig' %}
340+
{% form_theme form.children 'form/fields.html.twig' %}
341341

342342
This is useful when you want to have a custom theme for a nested form that's
343343
different than the one of your main form. Just specify both your themes:
@@ -346,7 +346,7 @@ different than the one of your main form. Just specify both your themes:
346346

347347
{% form_theme form 'form/fields.html.twig' %}
348348

349-
{% form_theme form.child 'form/fields_child.html.twig' %}
349+
{% form_theme form.children 'form/fields_child.html.twig' %}
350350

351351
Form Theming in PHP
352352
-------------------

0 commit comments

Comments
 (0)