Details
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;
Fixed in
DDC-929