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

The total number of joined #876

Closed
foolskill opened this issue Dec 9, 2016 · 4 comments
Closed

The total number of joined #876

foolskill opened this issue Dec 9, 2016 · 4 comments

Comments

@foolskill
Copy link

foolskill commented Dec 9, 2016

Hello team,

I started to develop my application with ApiPlatform. It works well but I just have a problem with one of my entities. I can not read it (GET). In return I have the following error:

{ "@context": "/api/contexts/Error", "@type": "Error", "hydra:title": "An error occurred", "hydra:description": "The total number of joined relations has exceeded the specified maximum. Raise the limit if necessary." }

Could someone help me? Have you ever been confronted with this problem?

thank you

@foolskill
Copy link
Author

I solved the problem by half. By just removing the annotation normalization_context my api work.
I wonder how that happens. I have, however, reproduced the documentation on the normalization_context.

@dunglas
Copy link
Member

dunglas commented Dec 9, 2016

@foolskill can you try to set force_eager to false for this resource as described here: https://api-platform.com/docs/core/performance#eager-loading?

@soyuka
Copy link
Member

soyuka commented Dec 10, 2016

I have, however, reproduced the documentation on the normalization_context.

Can you remember where in the documentation? Thanks!

@Simperfit
Copy link
Contributor

Closing as there are no feedback

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

4 participants