Skip to content

Commit 7571086

Browse files
sfmokjaviereguiluz
authored andcommitted
Update serializer.rst
I have checked ``ObjectNormalizer`` and I found only methods start by (has, get, and can) can be detected automatically for normalising them Am I wrong?
1 parent 84c8a38 commit 7571086

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)