File tree 3 files changed +3
-1
lines changed
src/Symfony/Component/Serializer
3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public function loadClassMetadata(ClassMetadataInterface $classMetadata)
72
72
}
73
73
74
74
if (isset ($ attribute ['ignore ' ])) {
75
- $ attributeMetadata ->setIgnore (( bool ) $ attribute ['ignore ' ]);
75
+ $ attributeMetadata ->setIgnore (XmlUtils:: phpize ( $ attribute ['ignore ' ]) );
76
76
}
77
77
78
78
foreach ($ attribute ->context as $ node ) {
Original file line number Diff line number Diff line change 37
37
<class name =" Symfony\Component\Serializer\Tests\Fixtures\Annotations\IgnoreDummy" >
38
38
<attribute name =" ignored1" ignore =" true" />
39
39
<attribute name =" ignored2" ignore =" true" />
40
+ <attribute name =" notIgnored" ignore =" false" />
40
41
</class >
41
42
42
43
<class name =" Symfony\Component\Serializer\Tests\Fixtures\Annotations\ContextDummyParent" >
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ public function testLoadIgnore()
107
107
$ attributesMetadata = $ classMetadata ->getAttributesMetadata ();
108
108
$ this ->assertTrue ($ attributesMetadata ['ignored1 ' ]->isIgnored ());
109
109
$ this ->assertTrue ($ attributesMetadata ['ignored2 ' ]->isIgnored ());
110
+ $ this ->assertFalse ($ attributesMetadata ['notIgnored ' ]->isIgnored ());
110
111
}
111
112
112
113
protected function getLoaderForContextMapping (): LoaderInterface
You can’t perform that action at this time.
0 commit comments