Skip to content

Commit f3ca068

Browse files
committed
Ambiguity applies to any registered field type
1 parent 58b6ecd commit f3ca068

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
@@ -1100,12 +1100,13 @@ the choice is ultimately up to you.
11001100

11011101
.. caution::
11021102

1103-
When the name of your form class matches any of the built-in field types,
1104-
your form won't be rendered correctly. A form
1103+
When the name of your form class matches any registered field type that has
1104+
its own theme fragment, your form won't be rendered correctly. A form
11051105
``AppBundle\\Form\\Type\\PasswordType`` to change a user password for
11061106
instance will be mistaken for the built-in ``PasswordType`` field type and
1107-
won't be rendered correctly. You can still use the class name of your choice
1108-
by overriding the ``getBlockPrefix`` method of your form class::
1107+
will be rendered incorrectly using the ``password_widget`` theme fragment.
1108+
You can still use the class name of your choice by overriding the
1109+
``getBlockPrefix`` method of your form class::
11091110

11101111
public function getBlockPrefix()
11111112
{

0 commit comments

Comments
 (0)