Skip to content

Commit 10a3b1c

Browse files
authored
Move doctrine/annotations instructions
Move doctrine/annotation instructions to first example using annotation loader
1 parent 399cd73 commit 10a3b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/serializer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ when constructing the normalizer::
189189
'allow_extra_attributes' => false,
190190
]);
191191

192+
.. include:: /_includes/_annotation_loader_tip.rst.inc
193+
192194
Deserializing in an Existing Object
193195
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
194196

@@ -368,8 +370,6 @@ You are now able to serialize only attributes in the groups you want::
368370
);
369371
// $obj2 = MyObj(foo: 'foo', bar: 'bar')
370372

371-
.. include:: /_includes/_annotation_loader_tip.rst.inc
372-
373373
.. _ignoring-attributes-when-serializing:
374374

375375
Selecting Specific Attributes

0 commit comments

Comments
 (0)