Skip to content

Commit

Permalink
docs: add note about array key type being ignored when serializing (#…
Browse files Browse the repository at this point in the history
…1235)

* docs: add note about array key type being ignored when serializing

* Update annotations.rst

Co-authored-by: Asmir Mustafic <[email protected]>
  • Loading branch information
eduardoweiland and goetas authored Jul 13, 2020
1 parent 40b5c2b commit 11da161
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/reference/annotations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ Available Types:

(*) If the standalone jms/serializer is used then default format is `\DateTime::ISO8601` (which is not compatible with ISO-8601 despite the name). For jms/serializer-bundle the default format is `\DateTime::ATOM` (the real ISO-8601 format) but it can be changed in `configuration`_.

(**) The key type K for array-linke formats as ``array``. ``ArrayCollection``, ``iterable``, etc., is only used for deserialization,
for serializaiton is treated as ``string``.

Examples:

.. code-block :: php
Expand Down

0 comments on commit 11da161

Please sign in to comment.