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

Empty exist relationship [Question] #63

Open
kaermorchen opened this issue May 16, 2020 · 2 comments
Open

Empty exist relationship [Question] #63

kaermorchen opened this issue May 16, 2020 · 2 comments

Comments

@kaermorchen
Copy link

kaermorchen commented May 16, 2020

Hello.
I have an entity which have one-to-many relationship to other entity. But when I get a request, the response doesn't have a relationships field.

When I get a request with include parameter, the response has relationships in data object and includes.

But how can I get all attributes and relationships in data object without include?

@paknahad
Copy link
Owner

Hi
you need to remove this line in transformers: ->omitDataWhenNotIncluded();

I'll let this issue be open for a merge request which makes this option, configurable.

@kaermorchen
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants