mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-874: orm:convert-mapping #1085
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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;
@doctrinebot commented on GitHub (Dec 30, 2010):
Comment created by @beberlei:
Fixed in DDC-929
@doctrinebot commented on GitHub (Dec 30, 2010):
Issue was closed with resolution "Fixed"