File tree 2 files changed +10
-5
lines changed 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,6 @@ traverse
264
264
265
265
**type **: ``boolean `` **default **: ``true ``
266
266
267
- If this constraint is applied to a property that holds an array of objects,
268
- then each object in that array will be validated only if this option is
269
- set to `` true `` .
267
+ If this constraint is applied to a `` Traversable ``, then all containing values
268
+ will be validated if this option is set to `` true ``. This option is ignored on
269
+ arrays: Arrays are traversed in either case. Keys are not validated .
Original file line number Diff line number Diff line change @@ -66,8 +66,13 @@ field as **three different choice fields**::
66
66
'widget' => 'choice',
67
67
]);
68
68
69
- If your underlying date is *not * a ``DateTime `` object (e.g. it's a unix timestamp),
70
- configure the `input `_ option.
69
+ If your underlying date is *not * a ``DateTime `` object (e.g. it's a unix
70
+ timestamp or a ``DateTimeImmutable `` object), configure the `input `_ option::
71
+
72
+ $builder->add('publishedAt', DateType::class, [
73
+ 'widget' => 'choice',
74
+ 'input' => 'datetime_immutable'
75
+ ]);
71
76
72
77
Rendering a single HTML5 Textbox
73
78
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments