From 10a3b1cf5bca3c2ed256ff36ceb68dbd34b78495 Mon Sep 17 00:00:00 2001 From: makmaoui <37940572+makmaoui@users.noreply.github.com> Date: Sat, 17 Aug 2019 10:50:11 +0200 Subject: [PATCH] Move doctrine/annotations instructions Move doctrine/annotation instructions to first example using annotation loader --- components/serializer.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/serializer.rst b/components/serializer.rst index 4eba1055433..b2224f28a3f 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -189,6 +189,8 @@ when constructing the normalizer:: 'allow_extra_attributes' => false, ]); +.. include:: /_includes/_annotation_loader_tip.rst.inc + Deserializing in an Existing Object ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -368,8 +370,6 @@ You are now able to serialize only attributes in the groups you want:: ); // $obj2 = MyObj(foo: 'foo', bar: 'bar') -.. include:: /_includes/_annotation_loader_tip.rst.inc - .. _ignoring-attributes-when-serializing: Selecting Specific Attributes