Skip to content

Commit bfdd89d

Browse files
committed
minor #17487 [Form] Example using hash_property_path with RepeatedType (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 parents b1adb29 + ae02dda commit bfdd89d

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)