DDC-1288: Column Name #1618

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

Originally created by @doctrinebot on GitHub (Jul 22, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user websalo:

Hello, I am starting development with symfony Doctrine ORM, and I'm one big question: the company where I work, there is a table in a database whose field (column) must be called "call-limit", (I repeat, have to have this name), but I can not for the Doctrine does not allow ... Is there any way to treat this? I've tried using the alias, but to no avail ... If someone can help me ... Hug.

Originally created by @doctrinebot on GitHub (Jul 22, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user websalo: Hello, I am starting development with symfony Doctrine ORM, and I'm one big question: the company where I work, there is a table in a database whose field (column) must be called "call-limit", (I repeat, have to have this name), but I can not for the Doctrine does not allow ... Is there any way to treat this? I've tried using the alias, but to no avail ... If someone can help me ... Hug.
admin added the New Feature label 2026-01-22 13:20:09 +01:00
admin closed this issue 2026-01-22 13:20:09 +01:00
Author
Owner

@doctrinebot commented on GitHub (Aug 16, 2011):

Comment created by @guilhermeblanco:

Just map your @Column providing the db field name.

/****
 * @Column(name="my-desired-name")
 */
protected $otherName;

The only question you should check then is if your RDBMS supports the dashes as a valid column name.

Cheers,

@doctrinebot commented on GitHub (Aug 16, 2011): Comment created by @guilhermeblanco: Just map your @Column providing the db field name. ``` /**** * @Column(name="my-desired-name") */ protected $otherName; ``` The only question you should check then is if your RDBMS supports the dashes as a valid column name. Cheers,
Author
Owner

@doctrinebot commented on GitHub (Aug 16, 2011):

Issue was closed with resolution "Invalid"

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

No dependencies set.

Reference: doctrine/archived-orm#1618