File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1100,12 +1100,13 @@ the choice is ultimately up to you.
1100
1100
1101
1101
.. caution ::
1102
1102
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
1105
1105
``AppBundle\\Form\\Type\\PasswordType `` to change a user password for
1106
1106
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::
1109
1110
1110
1111
public function getBlockPrefix()
1111
1112
{
You can’t perform that action at this time.
0 commit comments