Skip to content

Commit 3c0734a

Browse files
Change 'ignore' element to attribute in Serializer XML example
1 parent 1c2a61a commit 3c0734a

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
@@ -517,9 +517,7 @@ Option 1: Using ``@Ignore`` Annotation
517517
https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
518518
>
519519
<class name="App\Model\MyClass">
520-
<attribute name="bar">
521-
<ignore>true</ignore>
522-
</attribute>
520+
<attribute name="bar" ignore="true"/>
523521
</class>
524522
</serializer>
525523

0 commit comments

Comments
 (0)