doctrine/mongodb-odm — pull request #984 by malarzm (2014-11-27 16:26:47+00:00)
Title: Consider discrimanted Embeds in index generation

Related discussion: https://github.com/doctrine/mongodb-odm/issues/225#issuecomment-63811609

Long story short ``SchemaManager`` needs ``targetDocument`` specified to go deeper while creating indexes. With this modification documents specified in ``discriminatorMap`` will also be checked for any indexes defined there.

cc @bensquire