tecbot/mongodb-odm — comment on commit dd10565b70e2a82a302264603a6b909eebc49b29
File:  line 0
By tecbot:

You define your indexes wrong. Look at the code (https://github.com/doctrine/mongodb-odm/blob/master/lib/Doctrine/ODM/MongoDB/SchemaManager.php#L80). You need define an index ```loc``` in the image class. The ```SchemaManager``` will convert it to ```images.loc``` automatical.