Fixed the class name check and removed variable overwriting
Fixed the class name check and removed variable overwriting

Soullivaneuh/DoctrineMongoDBBundle,tomasbro/DoctrineMongoDBBundle,alcaeus/DoctrineMongoDBBundle,malarzm/DoctrineMongoDBBundle,juchi/DoctrineMongoDBBundle,doctrine/DoctrineMongoDBBundle,Soullivaneuh/DoctrineMongoDBBundle,castarco/DoctrineMongoDBBundle,sarcher/DoctrineMongoDBBundle,tomasbro/DoctrineMongoDBBundle,malarzm/DoctrineMongoDBBundle,jahller/DoctrineMongoDBBundle,stof/DoctrineMongoDBBundle,0mars/DoctrineMongoDBBundle,juchi/DoctrineMongoDBBundle,castarco/DoctrineMongoDBBundle,jahller/DoctrineMongoDBBundle,0mars/DoctrineMongoDBBundle,alcaeus/DoctrineMongoDBBundle