Fixed a bug related to: https://github.com/Sammaye/MongoYii/issues/217