@@ -512,9 +512,10 @@ There are several types of normalizers available:
512
512
directly and through getters, setters, hassers, adders and removers. It supports
513
513
calling the constructor during the denormalization process.
514
514
515
- Objects are normalized to a map of property names (method name stripped of
516
- the "get"/"set"/"has"/"remove" prefix and converted to lower case) to property
517
- values.
515
+ Objects are normalized to a map of property names and values (names are
516
+ generated removing the ``get ``, ``set ``, ``has `` or ``remove `` prefix from
517
+ the method name and lowercasing the first letter; e.g. ``getFirstName() `` ->
518
+ ``firstName ``).
518
519
519
520
The ``ObjectNormalizer `` is the most powerful normalizer. It is configured by
520
521
default when using the Symfony Standard Edition with the serializer enabled.
@@ -524,8 +525,9 @@ There are several types of normalizers available:
524
525
(public methods starting with "get"). It will denormalize data by calling
525
526
the constructor and the "setters" (public methods starting with "set").
526
527
527
- Objects are normalized to a map of property names (method name stripped of
528
- the "get" prefix and converted to lower case) to property values.
528
+ Objects are normalized to a map of property names and values (names are
529
+ generated removing the ``get `` prefix from the method name and lowercasing
530
+ the first letter; e.g. ``getFirstName() `` -> ``firstName ``).
529
531
530
532
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ PropertyNormalizer `
531
533
This normalizer directly reads and writes public properties as well as
@@ -596,7 +598,8 @@ Circular references are common when dealing with entity relations::
596
598
}
597
599
598
600
To avoid infinite loops, :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer `
599
- throws a :class: `Symfony\\ Component\\ Serializer\\ Exception\\ CircularReferenceException `
601
+ or :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ObjectNormalizer `
602
+ throw a :class: `Symfony\\ Component\\ Serializer\\ Exception\\ CircularReferenceException `
600
603
when such a case is encountered::
601
604
602
605
$member = new Member();
0 commit comments