FriendsOfSymfony/FOSElasticaBundle — pull request #639 by RonXS (2014-06-29 20:19:21+00:00)
Title: [FEATURE] Use static instantiation with max depth check

I'm going to contact the guys from JMS Serializer aswell, since they also have locations where they instantiate a context without any parameters and i cannot figure out why you want this option to be disabled at all.

They've built in a nice feature for limiting the maximal depth of serialization.
This will not cause any harm at all, if its not used in the annotations (@JMS\MaxDepth)
But enabling this, will atleast make sure that depth limiting (exclusion pattern) works.