Fixed https://github.com/Sammaye/MongoYii/issues/77