doctrine/mongodb-odm — pull request #228 by jmikola (2012-01-09 06:06:49+00:00)
Title: Fix discriminator field handling in SchemaManager and mapping loaders

This fixes two semi-related issues:

* SchemaManager previously did not respect a possible mapping on the discriminator field.
* The mapping loaders for XML and YAML incorrectly required the "name" option for a discriminator field (it should be optional), and the annotation driver ignored the option entirely.