Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Can't Fix
-
Affects Version/s: 2.0-ALPHA4
-
Fix Version/s: None
-
Component/s: Mapping Drivers
-
Security Level: All
-
Labels:None
Description
What do you think of something like this? It needs to be implemented for the other drivers, but before I implement the rest of it I want to make sure you are okay with it. With this patch it makes it easier to drop in new child classes without having to modify the parent class.
The use case is in a content management framework where we provide a base Node entity and the developers can extend that Node. In this scenario they won't really be able to modify the mapping information for that class included in the framework. With this patch they can drop in new child classes and specify the discriminatorValue there and it is added to the topmost parent class in the ClassMetadataFactory
Issue Links
- duplicates
-
DDC-378
Allow configuring of discriminatorMap from child classes
-
Just a not here, this allows this syntax in your annotations:
Instead of having to specify it in the top most parent class.
YAML:
XML: