8000 [Form] fixed ChoiceType example in CollectionType · symfony/symfony-docs@80c26c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80c26c1

Browse files
committed
[Form] fixed ChoiceType example in CollectionType
1 parent 88f0238 commit 80c26c1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

reference/forms/types/collection.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,12 @@ type::
289289
'type' => 'choice',
290290
'options' => array(
291291
'choices' => array(
292-
'nashville' => 'Nashville',
293-
'paris' => 'Paris',
294-
'berlin' => 'Berlin',
295-
'london' => 'London',
292+
'Nashville' => 'nashville',
293+
'Paris' => 'paris',
294+
'Berlin' => 'berlin',
295+
'London' => 'london',
296296
),
297+
'choices_as_values' => true,
297298
),
298299
));
299300

0 commit comments

Comments
 (0)
0