Skip to content

Commit 428f2f0

Browse files
committed
minor #16912 [Serializer] Update serializer.rst (sfmok)
This PR was submitted for the 6.2 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Serializer] Update serializer.rst I have checked ``ObjectNormalizer`` and I found only methods start by (is, has, get, and can) can be detected automatically for normalising them Am I wrong? Commits ------- 7571086 Update serializer.rst
2 parents 84c8a38 + 7571086 commit 428f2f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/serializer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ If you are using isser methods (methods prefixed by ``is``, like
639639
``App\Model\Person::isSportsperson()``), the Serializer component will
640640
automatically detect and use it to serialize related attributes.
641641

642-
The ``ObjectNormalizer`` also takes care of methods starting with ``has``, ``add``
643-
and ``remove``.
642+
The ``ObjectNormalizer`` also takes care of methods starting with ``has`` and
643+
``get``.
644644

645645
Using Callbacks to Serialize Properties with Object Instances
646646
-------------------------------------------------------------

0 commit comments

Comments
 (0)