Skip to content

Commit ba5b4ab

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: Fix Serializer context configuration in YAML
2 parents a77890f + 20c24bd commit ba5b4ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serializer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ You can also specify the context on a per-property basis::
185185
App\Model\Person:
186186
attributes:
187187
createdAt:
188-
context:
189-
datetime_format: 'Y-m-d'
188+
contexts:
189+
- { context: { datetime_format: 'Y-m-d' } }
190190
191191
.. code-block:: xml
192192

0 commit comments

Comments
 (0)