sonata-project/SonataDoctrineMongoDBAdminBundle — pull request #39 by jvandesande (2013-02-05 07:44:49+00:00)
Title: Return Proxyquery instead of Doctrine QueryBuilder for createQuery

This was also fixed in doctrine orm a while ago:
https://github.com/sonata-project/SonataDoctrineORMAdminBundle/commit/e143a23c528d80241f7f186a997386854fc7d759

This was required to make the admin extensions work for mongodb admin.

I fixed the instanceof check in executeQuery() too.