From 80c26c15c5f31adbe52d21c6966ea9bfdb5ad232 Mon Sep 17 00:00:00 2001 From: Jules Pietri Date: Sat, 9 Apr 2016 13:55:31 +0200 Subject: [PATCH] [Form] fixed ChoiceType example in CollectionType --- reference/forms/types/collection.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reference/forms/types/collection.rst b/reference/forms/types/collection.rst index b5036c7785f..b2c8d8ce1a3 100644 --- a/reference/forms/types/collection.rst +++ b/reference/forms/types/collection.rst @@ -289,11 +289,12 @@ type:: 'type' => 'choice', 'options' => array( 'choices' => array( - 'nashville' => 'Nashville', - 'paris' => 'Paris', - 'berlin' => 'Berlin', - 'london' => 'London', + 'Nashville' => 'nashville', + 'Paris' => 'paris', + 'Berlin' => 'berlin', + 'London' => 'london', ), + 'choices_as_values' => true, ), ));