mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2022: DiscriminatorMap mixing up namespaces #2549
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Sep 10, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user sem:
I have a superclass RuleLine that has NO namespace which has a discriminator map with 2 entities of which 1 has a namespace and one does not, doctrine however will always try to load the entity without namespace with the one that does saying something like :
Doctrine\ORM\Mapping\MappingException : Entity class 'Core\domain\meal\DietRuleLine' used in the discriminator map of class 'Core\domain\meal\MealRuleLine' does not exist.
Example:
MealRuleLine (WITH namespace):
And DietRuleLine (NO NAMESPACE):
This always gives the following error :
{quote}
Doctrine\ORM\Mapping\MappingException : Entity class 'Core\domain\meal\DietRuleLine' used in the discriminator map of class 'Core\domain\meal\MealRuleLine' does not exist.
{quote}