DDC-874: orm:convert-mapping #1085

Closed
opened 2026-01-22 13:01:23 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 10, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user csrinaldi:

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;

Originally created by @doctrinebot on GitHub (Nov 10, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user csrinaldi: 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;
admin added the Bug label 2026-01-22 13:01:23 +01:00
admin closed this issue 2026-01-22 13:01:23 +01:00
Author
Owner

@doctrinebot commented on GitHub (Dec 30, 2010):

Comment created by @beberlei:

Fixed in DDC-929

@doctrinebot commented on GitHub (Dec 30, 2010): Comment created by @beberlei: Fixed in [DDC-929](http://www.doctrine-project.org/jira/browse/DDC-929)
Author
Owner

@doctrinebot commented on GitHub (Dec 30, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Dec 30, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1085