0 votes

When trying to create the database from generated Entity classes with inheritance I get an AnnotationException.

This is an example entity:

 * @ORM\Entity
 * @ORM\InheritanceType("JOINED")
 * @ORM\DiscriminatorColumn(name="dtype", type="string")
 * @ORM\DiscriminatorMap({
 *     administrator="Application\Model\Entity\Administrator"
 * })
class User

This is the error I get:

[Semantical Error] Couldn't find constant administrator, class Application\Model\Entity\User.

It seems that the keys in the DiscriminatorMap should be quoted like this:

 * @ORM\DiscriminatorMap({
 *     "administrator"="Application\Model\Entity\Administrator"
 * })
in Solved by (840 points)
recategorized by

Thanks for info, we will fix it.

Fixed and prepared for release.

1 Answer

0 votes
Best answer

New version with this feature/bugfix was released.
Please download latest version here http://www.orm-designer.com/download-orm-designer

by Skipper developer (141k points)
selected by