-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
Document the implied 'Default' property group when no group is specified #661
Conversation
Pay attention to https://github.com/schmittjoh/serializer/blob/master/src/JMS/Serializer/Exclusion/GroupsExclusionStrategy.php#L34 The documentation says that there is a |
@goetas Ah ha! Thanks for pointing that out. It wasn't apparent that the |
i guess the document you tried to change, had the intent do document it :) but an explicit section does not exists probably... interested in adding it? |
Yup. I'll back out the last commit and add an explicit statement about it. |
@goetas let me know if that is clear enough. |
You can achieve that by using the ``@Groups`` annotation on your properties. | ||
You can achieve that by using the ``@Groups`` annotation on your properties. Any | ||
property without an explicit ``@Groups`` annotation will be included in a | ||
``Default`` group, which can be used when specifying groups in the serializer. |
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.
"...groups in the serialization context." ?
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.
fine by me.
thanks |
Pretty sure the example code should be referencing
details
and notDefault
.