Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA4
    • Fix Version/s: 2.0.1, 2.1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Ubuntu 10.10.

      Description

      I have a Postgres SQL database.
      The Base has only one table "User" with two attributes (name and id).
      "Id" is primary key.

      The failure to execute the task:
      php orm doctrine: convert-mapping - from-database yml / home / cristian / database.yml

      is:

      [Doctrine \ ORM \ Mapping \ MappingException]
      No identifier / primary key for Specified Entity 'User'. Every Entity must have for an identifier / primary key

      Script to create the table:

      CREATE TABLE "User"
      (
      id serial NOT NULL,
      name character varying (55),
      CONSTRAINT "User_pkey" PRIMARY KEY (id)
      )
      WITH (
      OIDS = FALSE
      )
      ALTER TABLE "User" OWNER TO postgres;

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed in DDC-929

        Show
        Benjamin Eberlei added a comment - Fixed in DDC-929

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Cristian Rinaldi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: