-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[PropertyInfo] Document setting serializer_groups to null in the SerializerExtractor #13825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
components/property_info.rst
Outdated
|
||
.. note:: | ||
|
||
The `serializer_groups` option must be provided in order to have a value different than `null` returned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor thing. I know it's annoying, but RST format is a bit different than Markdown for code. All single backticks must be double backticks:
`serializer_groups` -> ``serializer_groups``
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, thanks :) I've been fooled by the single backtick for links 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi!
I'm sorry for the slow response on this one. Can you please rebase this from master
onto the 5.x
branch and fix my 2 minor comments? Other than that, it's ready to be merged imho.
|
||
.. note:: | ||
|
||
The ``serializer_groups`` option must be provided in order to have a value different than ``null`` returned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move this into a PHP comment in the above example:
- // List information.
+ // The `serializer_groups` option must be configured (may be set to null)
If ``serializer_groups`` is set to ``null``, serializer groups metadata won't be checked but you will get only the properties | ||
considered by the Serializer Component (notably the ``@Ignore`` annotation is taken into account). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's best to remove the .. note::
and make this a normal paragraph
If ``serializer_groups`` is set to ``null``, serializer groups metadata won't be checked but you will get only the properties | |
considered by the Serializer Component (notably the ``@Ignore`` annotation is taken into account). | |
If ``serializer_groups`` is set to ``null``, serializer groups metadata won't be checked but you | |
will get only the properties considered by the Serializer Component (notably the ``@Ignore`` | |
annotation is taken into account). |
4b82683
to
3781df6
Compare
Thanks Guilhem! @wouterj I did the changes you proposed while merging. |
My bad, I forgot to update my PR to take into account @wouterj suggestions after reading the notification... |
This PR fixes #13793 :)
If you'd like I can backport the part about
serializer_groups
begin mandatory in order to use theSerializerExtractor
.