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 @@ -1124,12 +1124,13 @@ the choice is ultimately up to you.
1124
1124
1125
1125
.. caution ::
1126
1126
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
1129
1129
``AppBundle\\Form\\Type\\PasswordType `` to change a user password for
1130
1130
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::
1133
1134
1134
1135
public function getBlockPrefix()
1135
1136
{
You can’t perform that action at this time.
0 commit comments