Skip to content

[Serializer] Groups annotation/attribute on class #18657

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

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

alexandre-daubois
Copy link
Member

Fix #18653

serializer.rst Outdated
@@ -321,7 +321,37 @@ to your class::
private string $description;
}

You can now choose which groups to use when serializing::
You can also add the ``#[Groups]`` attribute on your class directly::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can also add the ``#[Groups]`` attribute on your class directly::
You can also use the ``#[Groups]`` attribute on class level::

serializer.rst Outdated

.. versionadded:: 6.4

The support of the ``#[Groups]`` attribute on the class itself was
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The support of the ``#[Groups]`` attribute on the class itself was
The support of the ``#[Groups]`` attribute on class level was

@alexandre-daubois
Copy link
Member Author

Comments addressed 👌

@OskarStark
Copy link
Contributor

Thank you Alexandre.

@OskarStark OskarStark merged commit ad90d16 into symfony:6.4 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Serializer] Groups annotation/attribute on class
3 participants