DDC-1151: Table name at reference is not quoted, even if table name in entity has quotation marks. #1429

Open
opened 2026-01-22 13:14:04 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (May 7, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user margus:

Reference for PostgreSQL and MySQL is folloing:

ALTER TABLE "user*group" ADD FOREIGN KEY (user*id) REFERENCES user(id) NOT DEFERRABLE INITIALLY IMMEDIATE;
ALTER TABLE "user*group" ADD FOREIGN KEY (group*id) REFERENCES group(id) NOT DEFERRABLE INITIALLY IMMEDIATE

Entity is quoted:

/****
 * @Entity @Table(name="`user`")
 */
Originally created by @doctrinebot on GitHub (May 7, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user margus: Reference for PostgreSQL and MySQL is folloing: ``` ALTER TABLE "user*group" ADD FOREIGN KEY (user*id) REFERENCES user(id) NOT DEFERRABLE INITIALLY IMMEDIATE; ALTER TABLE "user*group" ADD FOREIGN KEY (group*id) REFERENCES group(id) NOT DEFERRABLE INITIALLY IMMEDIATE ``` Entity is quoted: ``` /**** * @Entity @Table(name="`user`") */ ```
admin added the Bug label 2026-01-22 13:14:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1429