Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitae02dda

Browse files
committed
Example usinghash_property_path withRepeatedType
1 parent70321a0 commitae02dda

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎reference/forms/types/password.rst‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ object.
6363
'mapped' => false,
6464
]);
6565

66+
or if you want to use it with the ``RepeatedType``::
67+
68+
$builder->add('plainPassword', RepeatedType::class, [
69+
'type' => PasswordType::class,
70+
'first_options' => ['label' => 'Password', 'hash_property_path' => 'password'],
71+
'second_options' => ['label' => 'Repeat Password'],
72+
'mapped' => false,
73+
]);
74+
6675
Overridden Options
6776
------------------
6877

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp