I'm getting this exception when I generate all entities from YAML using orm:generate-entities:
My discriminator map defined in Entity.Person.dcm.yml:
Mapping driver probably generates entities in wrong order, so entities defined in discriminator map does not exist when entity Person is being generated.
Note: The easiest workaround is to temporarily remove discriminatorMap definition from entity, generate entities, then put discriminatorMap back and then generate entities again. It would be great if it would be possible to generate all entities in only one step.