Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 739daaf

Browse filesBrowse files
committed
Tweaks
1 parent cb83dfc commit 739daaf
Copy full SHA for 739daaf

File tree

Expand file treeCollapse file tree

1 file changed

+5
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-6
lines changed

‎serializer.rst

Copy file name to clipboardExpand all lines: serializer.rst
+5-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.