Improve VersioningBundle compatibility with mongodb