Fix for issue: https://github.com/Sammaye/MongoYii/issues/24
Fix for: https://github.com/Sammaye/MongoYii/issues/24