Open mhvis opened 2 months ago
hi @mhvis thanks for reporting this.
Adding a maxdepth arg to this function \Facile\MongoDbBundle\DataCollector\MongoQuerySerializer::prepareUnserializableData
should probably be enough to stop the endless recursion.
Having a unit test to reproduce this would be great.
We encountered this issue while using Symfony Live Components. We were (accidentally as part of a larger object) trying to insert a
MountedComponent
instance into a MongoDB collection. When the debug toolbar is active, we get an infinite recursion in theMongoQuerySerializer
class.Steps to reproduce:
Database
.