From 26349dfca2694efbe3189f57635d4182dcb7cfce Mon Sep 17 00:00:00 2001 From: Liviu Balan Date: Tue, 17 Apr 2018 09:14:14 +0300 Subject: [PATCH] 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". --- form/form_customization.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/form/form_customization.rst b/form/form_customization.rst index 5bbf593fc99..c937933956d 100644 --- a/form/form_customization.rst +++ b/form/form_customization.rst @@ -337,7 +337,7 @@ You can also apply a form theme to a specific child of your form: .. code-block:: html+twig - {% form_theme form.child 'form/fields.html.twig' %} + {% form_theme form.children 'form/fields.html.twig' %} This is useful when you want to have a custom theme for a nested form that's 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: {% form_theme form 'form/fields.html.twig' %} - {% form_theme form.child 'form/fields_child.html.twig' %} + {% form_theme form.children 'form/fields_child.html.twig' %} Form Theming in PHP -------------------