Skip to content

Commit d0abaf0

Browse files
committed
Tweaks
1 parent 73695a2 commit d0abaf0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

components/property_info.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -434,15 +434,12 @@ with the ``property_info`` service in the Symfony Framework::
434434
);
435435
$serializerExtractor = new SerializerExtractor($serializerClassMetadataFactory);
436436

437-
// List information.
437+
// the `serializer_groups` option must be configured (may be set to null)
438438
$serializerExtractor->getProperties($class, ['serializer_groups' => ['mygroup']]);
439-
440-
.. note::
441-
442-
The ``serializer_groups`` option must be provided in order to have a value different than ``null`` returned.
443439
444-
If ``serializer_groups`` is set to ``null``, serializer groups metadata won't be checked but you will get only the properties
445-
considered by the Serializer Component (notably the ``@Ignore`` annotation is taken into account).
440+
If ``serializer_groups`` is set to ``null``, serializer groups metadata won't be
441+
checked but you will get only the properties considered by the Serializer
442+
Component (notably the ``@Ignore`` annotation is taken into account).
446443

447444
.. versionadded:: 5.2
448445

0 commit comments

Comments
 (0)