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

Commitbfdd89d

Browse files
committed
minor#17487 [Form] Example usinghash_property_path withRepeatedType (OskarStark)
This PR was merged into the 6.2 branch.Discussion----------[Form] Example using `hash_property_path` with `RepeatedType`Commits-------ae02dda Example using `hash_property_path` with `RepeatedType`
2 parentsb1adb29 +ae02dda commitbfdd89d

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