-
-
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
Recursion groups, serializing properties in entities #329
Comments
Hi guys, any chances to get your attention to this issue? Are we missing some existing solution? |
This would be a really useful addition to the bundle. Check out the proposed usage here by @andreasferber : Unless there is a suitable workaround? How else can you serialize User->Friends(User) without pulling in all the same fields for all the friends as you have for the original user? |
The way I'm working around this at the moment is to create a new model class (not persisted) for |
Have you seen #170 ? |
@adrienbrault No I hadn't! Thanks for the ref I'll keep an eye on that one too. |
@adrienbrault Wow, didn't see that. It seems to do the same thing. I think this can be closed. |
As pointed out in this thread http://stackoverflow.com/questions/12746455/jmsserializerbundle-serialization-groups-in-entities-with-relations there's no way I know to make a difference between groups in the main entity and its relations.
The changes brought by the answer are perfect to do so, but the author didn't submit his code here.
How should I do, is there a better way to do what I want or to implement this changes ? Should we open a pull request ? (I forked this repo and applied the changes in it as a temporary solution).
The text was updated successfully, but these errors were encountered: