Skip to content

Commit 7f19f00

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: add note in DiscriminatorMap section
2 parents 3e73268 + dbbccda commit 7f19f00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/serializer.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,6 +1829,11 @@ and ``BitBucketCodeRepository`` classes:
18291829
</class>
18301830
</serializer>
18311831
1832+
.. note::
1833+
1834+
The values of the ``mapping`` array option must be strings.
1835+
Otherwise, they will be cast into strings automatically.
1836+
18321837
Once configured, the serializer uses the mapping to pick the correct class::
18331838

18341839
$serialized = $serializer->serialize(new GitHubCodeRepository(), 'json');

0 commit comments

Comments
 (0)