File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -215,17 +215,17 @@ Then, create your groups definition:
215
215
.. code-block :: xml
216
216
217
217
<?xml version =" 1.0" ?>
218
- <serializer xmlns =" http://symfony.com/schema/dic/serializer"
218
+ <serializer xmlns =" http://symfony.com/schema/dic/serializer-mapping "
219
219
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
220
- xsi : schemaLocation =" http://symfony.com/schema/dic/serializer http://symfony.com/schema/dic/constraint -mapping/serializer-1.0.xsd" >
220
+ xsi : schemaLocation =" http://symfony.com/schema/dic/serializer-mapping http://symfony.com/schema/dic/serializer -mapping/serializer-mapping -1.0.xsd" >
221
221
<class name =" Acme\MyObj" >
222
222
<attribute name =" foo" >
223
- <group name = " group1" / >
224
- <group name = " group2" / >
223
+ <group > group1</ group >
224
+ <group > group2</ group >
225
225
</attribute >
226
226
227
227
<attribute name =" bar" >
228
- <group name = " group3" / >
228
+ <group > group3</ group >
229
229
</attribute >
230
230
</class >
231
231
</serializer >
You can’t perform that action at this time.
0 commit comments