Skip to content

Commit ea211ab

Browse files
authored
Review
1 parent 5d75696 commit ea211ab

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
@@ -366,12 +366,12 @@ It is also possible to serialize only a set of specific attributes::
366366
$serializer = new Serializer(array(new ObjectNormalizer()));
367367

368368
$data = $serializer->normalize($user, null, array('attributes' => array('familyName', 'company' => ['name'])));
369-
// $data = array('familyName' => 'Dunglas', 'company' => ['name' => 'Les-Tilleuls.coop']);
369+
// $data = array('familyName' => 'Dunglas', 'company' => array('name' => 'Les-Tilleuls.coop'));
370370

371371
Only attributes that are not ignored (see below) are available.
372372
If some serialization groups are set, only attributes allowed by those groups can be used.
373373

374-
As for groups, attributes can be applied during both the serialization and deserialization.
374+
As for groups, attributes can be applied during both the serialization and deserialization process.
375375

376376
Ignoring Attributes
377377
-------------------

0 commit comments

Comments
 (0)