Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-904

No identifier/primary key specified for Entity with inheritance

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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

        Activity

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Clément JOBEILI
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: