8000 Mention that hassers are supported in GetSetMethodNormalizer · symfony/symfony-docs@586a43a · GitHub
[go: up one dir, main page]

Skip to content

Commit 586a43a

Browse files
committed
Mention that hassers are supported in GetSetMethodNormalizer
1 parent e91c5f9 commit 586a43a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

serializer.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ possible to set the priority of the tag in order to decide the matching order.
115115
Here is an example on how to load the
116116
:class:`Symfony\\Component\\Serializer\\Normalizer\\GetSetMethodNormalizer`, a
117117
faster alternative to the `ObjectNormalizer` when data objects always use
118-
getters and setters:
118+
getters (``getXxx()``), issers (``isXxx()``) or hassers (``hasXxx()``) to read
119+
properties and setters (``setXxx()``) to change properties:
119120

120121
.. configuration-block::
121122

@@ -154,6 +155,11 @@ getters and setters:
154155
->addTag('serializer.normalizer')
155156
;
156157
158+
.. versionadded:: 3.4
159+
Support of hasser methods (``hasXxx()``) in ``GetSetMethodNormalizer`` was
160+
introduced in Symfony 3.4. In previous Symfony versions only getters (``getXxx()``)
161+
and issers (``isXxx()``) are supported.
162+
157163
.. _serializer-using-serialization-groups-annotations:
158164

159165
Using Serialization Groups Annotations

0 commit comments

Comments
 (0)
0