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

Missing information in doc regarding Circular reference #80

Closed
BorbagUskada opened this issue Jun 25, 2024 · 0 comments · Fixed by #84
Closed

Missing information in doc regarding Circular reference #80

BorbagUskada opened this issue Jun 25, 2024 · 0 comments · Fixed by #84

Comments

@BorbagUskada
Copy link
Contributor

There is a lack of information regarding handling of circular reference with associations.
Creating a basic route with an Entity association lead the following error if associated entity reference root one :

Uncaught PHP Exception Symfony\Component\Serializer\Exception\CircularReferenceException: "A circular reference has been detected when serializing the object of class "App\Domain\Product\Model\Product" (configured limit: 1)." at AbstractNormalizer.php line 193

There should be a part of the doc indicating that this can be resolved by serialization groups.

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

Successfully merging a pull request may close this issue.

1 participant