-
Notifications
You must be signed in to change notification settings - Fork 118
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
No link in my result... :(( #159
Comments
@willdurand @adrienbrault I've come up with this issue too, and haven't found a solution in any of the open / closed issues. I think this is the same problem that the user had in #140 but he never replied. The main problem is that when using serializer library to display only group attributes, Any thoughts? Cheers! |
You need to add the groups to those relations (they are excluded the same On Thursday, July 3, 2014, Pablo Martelletti notifications@github.com
|
@adrienbrault what do yo mean by add the groups to the relation? Talking about annotations, I would add a property to the group, by doing something like:
However, I define a relation for an Entity the following way:
So, with that example, what do you mean to add the group to the relation? the only "group" option in the documentation is for "exclusion" property, and in fact, I do no want to exclude but to show it (one would think that by default, all |
@adrienbrault ah! solved it. The key "exclusion" is confusing. I thought that those groups would be "excluded" from serialization, not the other way round. Sorry for that! |
Aw ! Shame on me... Thank you both @pmartelletti and @adrienbrault !! |
Maybe we should rename exclusion to inclusion, I see it is really confusing. On Thursday, July 3, 2014, Kévin EYERMANN notifications@github.com wrote:
|
@adrienbrault not really, because the "exlude if" attribute "excludes", it does not includes. Maybe a better idea would be to include |
Actually you have to specify "Default" and "list" (or "details") in your context for the feature to work as expected, or you will experience strange behaviors. |
If you use the FoSRestBundle , add annotations in the serialization controller Default group to see _links and _embedded
|
Hi.
Fist of all, sorry for my bad english, I'm trying to improve it.
I don't know what I am doing wrong but I can't have any link in my results. Here are some peace of my work. Maybe you coult tell me the problem.
config.yml
StationModel.php
Station.php
serializer configuration
Result of a request :
Any Idea ? Something I didn't understand ?
The text was updated successfully, but these errors were encountered: