Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-790

Generating entities with cli failed on inheritated entities due missing PK

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA4
    • Fix Version/s: 2.0-BETA4
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Kubuntu lucid lynx

      Description

      While generating entities with:

      ./doctrine orm:generate-entities --generate-methods=true ../tmp/entities

      getting MappingException: No identifier/primary key specified for Entity 'Entities\Admin'. Every Entity must have an identifier/primary key.

      Admin is class inheritated, definition included:

      Person: http://pastebin.com/5r9fXrAu
      Admin: http://pastebin.com/51BcRZWZ

        Activity

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Eduard Kracmar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: