Skip to content

Commit 0e1b92f

Browse files
committed
Add a label and a seealso block.
1 parent ccde29c commit 0e1b92f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

components/serializer.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ You are now able to serialize only attributes in the groups you want::
252252
$obj2 = $serializer->denormalize(array('foo' => 'foo', 'bar' => 'bar'), 'MyObj', null, array('groups' => array('group1', 'group3')));
253253
// $obj2 = MyObj(foo: 'foo', bar: 'bar')
254254

255+
.. _ignoring-attributes-when-serializing:
256+
255257
Ignoring Attributes
256258
-------------------
257259

@@ -449,4 +451,10 @@ having unique identifiers::
449451
echo $serializer->serialize($org, 'json');
450452
// {"name":"Les-Tilleuls.coop","members":[{"name":"K\u00e9vin", organization: "Les-Tilleuls.coop"]}
451453

454+
.. seealso::
455+
456+
A popular alternative to the Symfony Serializer Component is the third-party
457+
library, `JMS serializer`_.
458+
459+
.. _`JMS serializer`: https://github.com/schmittjoh/serializer
452460
.. _Packagist: https://packagist.org/packages/symfony/serializer

0 commit comments

Comments
 (0)