Skip to content

Commit 7b036f8

Browse files
committed
minor #6449 [Form] fixed ChoiceType example in CollectionType (HeahDude)
This PR was merged into the 2.7 branch. Discussion ---------- [Form] fixed ChoiceType example in CollectionType | Q | A | |---|-----| | Branch | 2.7+ | | Doc fix | yes | Uses new ChoiceType api. Commits ------- 80c26c1 [Form] fixed ChoiceType example in CollectionType
2 parents 60ca906 + 80c26c1 commit 7b036f8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

reference/forms/types/collection.rst

+5-4
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)