From 2ce9d9ca3bca85def91c8e9818d49fa7e49d4eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20D=C3=A9pigny?= Date: Fri, 18 May 2018 10:39:09 +0200 Subject: [PATCH] Fix error on @MaxDepth property for annotation, yaml and xml. Change property according to documentation --- components/serializer.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/serializer.rst b/components/serializer.rst index 8929357f2df..ced6920c942 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -793,7 +793,7 @@ Here, we set it to 2 for the ``$child`` property: /** * @MaxDepth(2) */ - public $foo; + public $child; // ... } @@ -802,7 +802,7 @@ Here, we set it to 2 for the ``$child`` property: Acme\MyObj: attributes: - foo: + child: max_depth: 2 .. code-block:: xml @@ -814,7 +814,7 @@ Here, we set it to 2 for the ``$child`` property: http://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd" > - +