DDC-984: use namespaced class name for generating table name #1226

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

Originally created by @doctrinebot on GitHub (Jan 13, 2011).

Jira issue originally created by user mathroc:

namespace is not used when table name are generated from class name. eg:

namespace CMS;

/*** @Entity **/
class User // db table will by default be "user"
{
    // ...
}

the table name for \CMS\User is "user" but I expected "cms\user" (or maybe "cms_user" if backslash is an invalid caracter in table name)

Originally created by @doctrinebot on GitHub (Jan 13, 2011). Jira issue originally created by user mathroc: namespace is not used when table name are generated from class name. eg: ``` namespace CMS; /*** @Entity **/ class User // db table will by default be "user" { // ... } ``` the table name for \CMS\User is "user" but I expected "cms\user" (or maybe "cms_user" if backslash is an invalid caracter in table name)
admin added the Improvement label 2026-01-22 13:06:31 +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#1226