Affects Version/s: 1.0.0ALPHA1
Fix Version/s: 1.0.0BETA1
I'm experiencing a problem when trying to embed documents and specify my own discriminatorMap and Field.
This is the code I have:
App_Model_Abstract is a MappedSuperClass.
App_Model_Ticket_Email and App_Model_Ticket_Twitter pretty much look alike right now:
and App_Model_Ticket_Message is another MappedSuperClass that extends App_Model_Abstract.
Now, whenever I create a new model and persist it to mongoDB, the entry gets created and looks like this:
However, as you can see no type field for my embedded documents, it still uses _doctrine_class_name.
But when I try to fetch this object, I get an exception saying "Class not found".
I think this is because right now Doctrine ODM does not write into the custom discriminatorField with embedded documents, but reads from it.