Skip to content

Conversation

@alexandre-daubois
Copy link
Member

Fix #18653

serializer.rst Outdated
}

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