Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Error when lauch the doctrine:generate:entities #47

Closed
kelu95 opened this Issue · 1 comment

2 participants

@kelu95

There is an error whith custom translation entity when i launch doctrine:generate:entities

[Doctrine\ORM\Mapping\MappingException]

No identifier/primary key specified for Entity 'Allblacks\MyBundle\Entity\MyTranslationEntity'. Every Entity must have an identifier/primary key.

@stof
Owner

As explained many times in previous issues here, this is a bug in the Doctrine EntityGenerator which does not handle inheritance properly. Nothing that can be solved in the bundle. If you want to use the generator tool, disable the mapping for the bundle (as explained in the doc) when running the command and enable it again after that.

@stof stof closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.