Skip to content

Commit 1e071d5

Browse files
committed
minor #17327 [Serializer] Fix XML example of ignoring an attribute redux (likeuntomurphy)
This PR was merged into the 5.4 branch. Discussion ---------- [Serializer] Fix XML example of ignoring an attribute redux This effectively reopens #16824, which could not be reopened because of a rebase after the PR was closed. Commits ------- 3c0734a Change 'ignore' element to attribute in Serializer XML example
2 parents 347f749 + 3c0734a commit 1e071d5

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)