Skip to content

Commit 18c7382

Browse files
committed
minor #9189 Mentioned the ability of PropertyNormalizer to handle parent classes (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Mentioned the ability of PropertyNormalizer to handle parent classes This fixes #8564. Commits ------- e3dcaec Mentioned the ability of PropertyNormalizer to handle parent classes
2 parents 82d773f + e3dcaec commit 18c7382

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/serializer.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,11 +569,15 @@ There are several types of normalizers available:
569569

570570
:class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer`
571571
This normalizer directly reads and writes public properties as well as
572-
**private and protected** properties. It supports calling the constructor
573-
during the denormalization process.
572+
**private and protected** properties (from both the class and all of its
573+
parent classes). It supports calling the constructor during the denormalization process.
574574

575575
Objects are normalized to a map of property names to property values.
576576

577+
.. versionadded:: 3.4
578+
The ability to handle parent classes for ``PropertyNormalizer`` was
579+
introduced in Symfony 3.4.
580+
577581
:class:`Symfony\\Component\\Serializer\\Normalizer\\JsonSerializableNormalizer`
578582
This normalizer works with classes that implement :phpclass:`JsonSerializable`.
579583

0 commit comments

Comments
 (0)