Skip to content

Commit acac19f

Browse files
committed
Ambiguity applies to any registered field type
1 parent f345358 commit acac19f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

book/forms.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,12 +1130,13 @@ the choice is ultimately up to you.
11301130

11311131
.. caution::
11321132

1133-
When the name of your form class matches any of the built-in field types,
1134-
your form won't be rendered correctly. A form
1133+
When the name of your form class matches any registered field type that has
1134+
its own theme fragment, your form won't be rendered correctly. A form
11351135
``AppBundle\\Form\\Type\\PasswordType`` to change a user password for
11361136
instance will be mistaken for the built-in ``PasswordType`` field type and
1137-
won't be rendered correctly. You can still use the class name of your choice
1138-
by overriding the ``getBlockPrefix`` method of your form class::
1137+
will be rendered incorrectly using the ``password_widget`` theme fragment.
1138+
You can still use the class name of your choice by overriding the
1139+
``getBlockPrefix`` method of your form class::
11391140

11401141
public function getBlockPrefix()
11411142
{

0 commit comments

Comments
 (0)