Skip to content

Commit 20c24bd

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: Fix Serializer context configuration in YAML
2 parents e570cff + f0c591f commit 20c24bd

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
@@ -201,8 +201,8 @@ You can also specify the context on a per-property basis::
201201
App\Model\Person:
202202
attributes:
203203
createdAt:
204-
context:
205-
datetime_format: 'Y-m-d'
204+
contexts:
205+
- { context: { datetime_format: 'Y-m-d' } }
206206
207207
.. code-block:: xml
208208

0 commit comments

Comments
 (0)