From 7571086567bb35af1668a587e46e42c50a6a18dd Mon Sep 17 00:00:00 2001 From: Mokhtar Tlili Date: Fri, 24 Jun 2022 21:58:19 +0200 Subject: [PATCH] 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? --- components/serializer.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/serializer.rst b/components/serializer.rst index 81707bc5a05..7b5c7af5ca0 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -639,8 +639,8 @@ If you are using isser methods (methods prefixed by ``is``, like ``App\Model\Person::isSportsperson()``), the Serializer component will automatically detect and use it to serialize related attributes. -The ``ObjectNormalizer`` also takes care of methods starting with ``has``, ``add`` -and ``remove``. +The ``ObjectNormalizer`` also takes care of methods starting with ``has`` and +``get``. Using Callbacks to Serialize Properties with Object Instances -------------------------------------------------------------