Sammaye/MongoYii — pull request #151 by tvollstaedt (2013-10-28 18:38:56+00:00)
Title: Fixes for EMongoFile class

I started to use EMongoFile and quite like your approach how to handle files. However, i spent the last hour debugging an exception when find()-ing EMongoFile instance when mongodb has not yet been used by any other model. Here's the patch.