Fix for: https://github.com/Sammaye/MongoYii/issues/218