Le 17/06/2011 22:29, mrdev a écrit :
Hi there,

since i decided to use the translatable feature of the Stof
\DoctrineExtensionsBundle i get this error

   [Doctrine\ORM\Mapping
\MappingException]
   No identifier/primary key specified for Entity 'Stof
\DoctrineExtensionsBundle\Entity\LogEntry'. Every Entity must have an
identifier/primary key.

i tried everything i found on the web, playing with annotations and
the LogEntry class has protected id property inherited from
AbstractLogEntry (no private property)...

i'm stuck.

any help ?

thanks

Benoît

This is a bug with the Doctrine EntityGenerator which has some issues with inheritance. The workaround is to disable the mapping of the bundle when you want to use the CLI command to generate your entities (disabling it is documented in the bundle doc) and to activate it again after running the command.

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to