8000 Tweaks · symfony/symfony-docs@0d6c702 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d6c702

Browse files
committed
Tweaks
1 parent 9a42530 commit 0d6c702

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

components/serializer.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,6 @@ As for groups, attributes can be selected during both the serialization and dese
399399
Ignoring Attributes
400400
-------------------
401401

402-
.. note::
403-
404-
Using :ref:`attribute groups <component-serializer-attributes-groups>` is considered best practice.
405-
406402
As an option, there's a way to ignore attributes from the origin object.
407403
To remove those attributes provide an array via the ``ignored_attributes``
408404
key in the ``context`` parameter of the desired serializer method::
@@ -424,7 +420,9 @@ key in the ``context`` parameter of the desired serializer method::
424420

425421
.. deprecated:: 4.2
426422

427-
The :method:`Symfony\\Component\\Serializer\\Normalizer\\AbstractNormalizer::setIgnoredAttributes` method was deprecated in Symfony 4.2.
423+
The :method:`Symfony\\Component\\Serializer\\Normalizer\\AbstractNormalizer::setIgnoredAttributes`
424+
method that was used as an alternative to the ``ignored_attributes`` option
425+
was deprecated in Symfony 4.2.
428426

429427
.. _component-serializer-converting-property-names-when-serializing-and-deserializing:
430428

0 commit comments

Comments
 (0)
0