You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Symfony Live 2015 and the @dunglas slides about ApiPlatform, I've read a lot on the future 2.7 serializer and wanted to give it a shot (MIT licence ftw).
I've replaced JMSSerializer by the Symfony serializer (v2.7). FIY I'm using FOSRest, FOSUser. Everything works as expected except for many-to-many relationships that leads to the circular reference error :
A circular reference has been detected (configured limit: 1).
It's easy to reproduce by using groups in a FOSUser class for example (gist of my use case).
I was wondering, is this an expected behavior or is it something that still needs a fix? Should I implement a repository that returns the result of the many-to-many relation or should the Serializer do the job by detecting the correct entity metadata?