-
-
Notifications
You must be signed in to change notification settings - Fork 906
Serialization groups for self-referenced doctrine entity #244
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
Comments
Hello, The only solution for now for such case is creating a custom normalizer. |
Ok I'll try that. |
You can find examples of custom normalizer in the bundle:
But otherwise it's pretty much the Symfony procedure: Symfony Serializer Component. |
@theofidry thanks |
@dunglas Would be good if we can hook into the metadata process to modify things (e.g. add |
I suppose it's already possible with a custom metadata loader (implementing |
This reverts commit e7e1ed6.
@dunglas I am also facing the same issue and require exactly same. How do I do it ? Is there any example for it ? |
Hello,
I wonder if it is possible to embed a relation from an entity to the same entity and have different properties shown on GET operation.
I need to get a full user with related users having fewer properties in.
The sample class :
The ressource definition I thinked about :
The wanted result :
The actual result :
I think there is something I don't understand, but maybe there's a known recipe for that use case.
Thank you.
The text was updated successfully, but these errors were encountered: