Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: Git Master
-
Fix Version/s: Git Master
-
Component/s: ORM
-
Security Level: All
-
Labels:None
-
Environment:Mac, MySQL, PHP 5.3.3
Description
Hi,
I think i found a little bug with doctrine and the inheritance on differente Symfony2 Bundle.
Here is the pb :
I use the DoctrineUserBundle (https://github.com/knplabs/DoctrineUserBundle) for one of my testing application, it's provide a nice way to handle user and session management trough a Symfony2 app.
I create an DoctrineUserBundle in my own Application Folder and I create an User sub class that inherit the User base class in the bundle with the annotation way.
When I run the doctrine:generate:entities command it's telling me:
No identifier/primary key specified for Entity 'Application\DoctrineUserBundle\Entity\User'. Every Entity must have an identifier/primary key.
But the User (base class of DoctrineUserBundle) has a primary key but with the xml way.
Do you think it's a bug ?
Thanks a lot
Now i get it. This is not a bug.
You cannot mix mappings from annotations and xml to define a single entity mapping. Its not possible.