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
@@ -814,9 +814,7 @@ Here, we set it to 2 for the ``$child`` property:
814814
http://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
815815
>
816816
<class name="Acme\MyObj">
817-
<attribute name="foo">
818-
<max-depth>2</max-depth>
819-
</attribute>
817+
<attribute name="foo" max-depth="2" />
820818
</serializer>
821819
822820
The metadata loader corresponding to the chosen format must be configured in

0 commit comments

Comments
 (0)