Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3928

Solving Recursion issues with Symfony and JsonSerializable

$
0
0

I'm looking for some input on recursion issues in doctrine entities using Symfony. A lot of the time we are running into this problem when we use JsonSerializable.

It makes total sense why this happens but it's extremely annoying when you're using a lot of related entities that needs to be serialized.

I know there are other libraries for seralizing with depth monitoring, but those aren't quite as convenient as JsonSerializable; especially when an entire project is already built this way.

Is there any way to limit the depth with JsonSeralizable?


Viewing all articles
Browse latest Browse all 3928

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>