8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2c4d31 commit 2ce9d9cCopy full SHA for 2ce9d9c
components/serializer.rst
@@ -793,7 +793,7 @@ Here, we set it to 2 for the ``$child`` property:
793
/**
794
* @MaxDepth(2)
795
*/
796
- public $foo;
+ public $child;
797
798
// ...
799
}
@@ -802,7 +802,7 @@ Here, we set it to 2 for the ``$child`` property:
802
803
Acme\MyObj:
804
attributes:
805
- foo:
+ child:
806
max_depth: 2
807
808
.. code-block:: xml
@@ -814,7 +814,7 @@ Here, we set it to 2 for the ``$child`` property:
814
http://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
815
>
816
<class name="Acme\MyObj">
817
- <attribute name="foo" max-depth="2" />
+ <attribute name="child" max-depth="2" />
818
</class>
819
</serializer>
820
0 commit comments