Skip to content

Commit 47f358e

Browse files
committed
Ambiguity applies to any registered field type
1 parent 1f50184 commit 47f358e

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

11251125
.. caution::
11261126

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

11341135
public function getBlockPrefix()
11351136
{

0 commit comments

Comments
 (0)