File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -137,19 +137,22 @@ modified handling of the ``choices`` optio. Being set to ``false`` the choices a
137
137
will be read as values mapping the keys. Setting the option to ``true `` will enable the new
138
138
handling of the choices mapping keys to values.
139
139
140
- * Before 2.7::
140
+ * Before 2.7::
141
+
141
142
$builder->add('gender', 'choice', array(
142
143
'choices' => array('m' => 'Male', 'f' => 'Female'),
143
144
'choices_as_values' => false,
144
145
));
145
146
146
- * Optional since 2.7::
147
+ * Optional since 2.7::
148
+
147
149
$builder->add('gender', 'choice', array(
148
150
'choices' => array('Male' => 'm', 'Female' => 'f'),
149
151
'choices_as_values' => true,
150
152
));
151
153
152
- * Default for 3.0::
154
+ * Default for 3.0::
155
+
153
156
$builder->add('gender', 'choice', array(
154
157
'choices' => array('Male' => 'm', 'Female' => 'f'),
155
158
));
You can’t perform that action at this time.
0 commit comments