Skip to content

Commit 739daaf

Browse files
committed
Tweaks
1 parent cb83dfc commit 739daaf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

serializer.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,11 @@ stored in one of the following locations:
368368

369369
.. _serializer-enabling-metadata-cache:
370370

371-
Using nested attributes
371+
Using Nested Attributes
372372
-----------------------
373373

374-
To map nested properties, a ``SerializedPath`` can be defined with annotations,
375-
attributes and YAML or XML configurations:
374+
To map nested properties, use the ``SerializedPath`` configuration to define
375+
their paths using a :doc:`valid PropertyAccess syntax </components/property_access>`:
376376

377377
.. configuration-block::
378378

@@ -445,9 +445,8 @@ object::
445445
$person->getBirthday(); // 01-01-1970
446446

447447
When using annotations or attributes, the ``SerializedPath`` can either
448-
be set on the property or the associated getter. The ``SerializedPath``
449-
cannot be used in combination with a ``SerializedName`` for the same propety.
450-
The given path must be a string that can be parsed as a ``PropertyPath``.
448+
be set on the property or the associated _getter_ method. The ``SerializedPath``
449+
cannot be used in combination with a ``SerializedName`` for the same property.
451450

452451
Configuring the Metadata Cache
453452
------------------------------

0 commit comments

Comments
 (0)