Fixed: https://github.com/Sammaye/MongoYii/issues/228 and
https://github.com/Sammaye/MongoYii/issues/229