Skip to content
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

Exclusion groups documentation is confusing #258

Open
beyerz opened this issue Jan 19, 2018 · 0 comments
Open

Exclusion groups documentation is confusing #258

beyerz opened this issue Jan 19, 2018 · 0 comments

Comments

@beyerz
Copy link

beyerz commented Jan 19, 2018

I use this bundle together with jms serializer and fos rest to provide a simple and easy interface.

I came across a situation where I wanted to serialize my entities differently by groups. After implementing this using jms annotations, I no longer had my _links as part of the serialized response.

I read about group in exclusion for Relation annotation, but since this is in exclusion, I made the assumption that this means the relation would be excluded for the specified groups.

In the end I put the group in the exclusion and now my _links show.

Having the group in exclusion and not as a separate attribute on the Relation is counterintuitive.

I would suggest that is either clarified better in the documentation or developed into a more intuitive attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants