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