Added fix for: https://github.com/Sammaye/MongoYii/issues/210