Skip to content

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/serializer.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -872,9 +872,7 @@ Here, we set it to 2 for the ``$child`` property:
872872
http://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
873873
>
874874
<class name="Acme\MyObj">
875-
<attribute name="foo">
876-
<max-depth>2</max-depth>
877-
</attribute>
875+
<attribute name="foo" max-depth="2" />
878876
</serializer>
879877
880878
The metadata loader corresponding to the chosen format must be configured in

0 commit comments

Comments
 (0)