Nevermind, I fixed it and sent up a pull request. On Wednesday, September 3, 2014 6:16:15 PM UTC-4, James Murray wrote: > > I have an issue where ODM is not writing to the discriminator field. > > Now, I know I don't have a discriminator map (leaving it blank so the > value is derived automatically) > > Basically I have an abstract class Rule, it has multiple classes that > extend it. In my example it's ChildRule. > > I also have other embedded documents that use a discriminator field with > no issue. > > here's a gist of the code > https://gist.github.com/jaimz22/d9aa03edc3cbe020d3b1 > > The data is also shown with the gist. you can see the 'type' field that > i'm specifying as the descriminatorField in the Rule class simply is not > written to mongo. > > once again I'll point out that it works perfect for the embedded Condition > classes, The annotations for Rule and Condition are nearly identical, with > the exception that Rule is a Document and Condition is EmbbededDocument. > > please help :( >
-- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
