Escaping field names #5134

Closed
opened 2026-01-22 14:59:11 +01:00 by admin · 1 comment
Owner

Originally created by @mxk1011 on GitHub (May 27, 2016).

Originally assigned to: @Ocramius on GitHub.

I can't use field names like group, from, database, ... because it is not escaped with ` - There is no functionallity to make doctrine use clean SQL Code

Originally created by @mxk1011 on GitHub (May 27, 2016). Originally assigned to: @Ocramius on GitHub. I can't use field names like group, from, database, ... because it is not escaped with ` - There is no functionallity to make doctrine use clean SQL Code
admin added the Can't FixDuplicate labels 2026-01-22 14:59:11 +01:00
admin closed this issue 2026-01-22 14:59:11 +01:00
Author
Owner

@Ocramius commented on GitHub (May 27, 2016):

See http://doctrine-orm.readthedocs.io/projects/doctrine-orm/en/latest/reference/limitations-and-known-issues.html#identifier-quoting-and-legacy-databases

Also, you can tell doctrine to quote by default (use a quoting strategy for that), but it may clash with your system due to the reasons mentioned above.

@Ocramius commented on GitHub (May 27, 2016): See http://doctrine-orm.readthedocs.io/projects/doctrine-orm/en/latest/reference/limitations-and-known-issues.html#identifier-quoting-and-legacy-databases Also, you can tell doctrine to quote by default (use a quoting strategy for that), but it may clash with your system due to the reasons mentioned above.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5134