doctrine/mongodb-odm — pull request #367 by kaiwa (2012-07-17 11:22:48+00:00)
Title: Fixing #366 (Undefined index in AbstractFileDriver line 116)

Checking if index is set, otherwise throwing dedicated exception.

[ErrorException]
Notice: Undefined index: Acme\FooBundle\Document\Links in /projects/acme/vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Driver/AbstractFileDriver.php line 116

turned into

[Doctrine\ODM\MongoDB\MongoDBException]
Could not find mapping for class "Acme\FooBundle\Document\Links" in file "/projects/acme/src/Acme/FooBundle/Resources/config/doctrine/Link.mongodb.yml".