JMS Serializer: How to limit the depth of serialisation for an object graph
问题 Maybe it is just my misunderstanding of this annotation however it does not seam to work as expected. I have the following object graph User -> Company -> Users -> Groups -> Permissions As you can see there will be some recursion. JMS handles this quite well by not serialising the other user's company properties as well as not the current user. However I want the serialization to stop at and include company. I have tried this expecting that once the level $context->level = 2 it would stop <