Skip to content

Commit a177fbf

Browse files
authored
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 3ffe898 commit a177fbf

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
@@ -746,8 +746,8 @@ If you are using isser methods (methods prefixed by ``is``, like
746746
``App\Model\Person::isSportsperson()``), the Serializer component will
747747
automatically detect and use it to serialize related attributes.
748748

749-
The ``ObjectNormalizer`` also takes care of methods starting with ``has``, ``can``,
750-
``add`` and ``remove``.
749+
The ``ObjectNormalizer`` also takes care of methods starting with ``has``, ``get``,
750+
and ``can``.
751751

752752
.. versionadded:: 6.1
753753

0 commit comments

Comments
 (0)