[DDC-1542] GH-221: [Inheritance] Joined: Default discriminator map Created: 16/Dec/11 Updated: 04/May/12 Resolved: 04/May/12
|Project:||Doctrine 2 - ORM|
|Reporter:||Benjamin Eberlei||Assignee:||Benjamin Eberlei|
Pull-Request was automatically synchronized: https://github.com/doctrine/doctrine2/pull/221
I know this topic was discussed a lot of times, but I wanted to give it a try anyway.
I want the discriminator map to be configured dynamically by doctrine instead of having to manually configure it myself. So I've digged into the code and the only place I've found (yet) to put the necessary code to make this happen is in the Drivers, just when they're loading the mapping information. So far, I've put a very simple piece of code in the AnnotationDriver to give it a try and I wrote a test for it. But before going on I wanted to ask you if it looks ok for you.
I've tested it in an application I'm working on and, so far, it works.
Two things come to mind though:
1) Is there any special case this would cause problems that I don't know of?
|Comment by Benjamin Eberlei [ 28/Dec/11 ]|
Mark as improvement and schedule for 2.3
|Comment by Benjamin Eberlei [ 22/Mar/12 ]|
A related Github Pull-Request [GH-221] was