Generated table/class names quoted for keywords #5110

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

Originally created by @d42ohpaz on GitHub (Apr 21, 2016).

Originally assigned to: @ostrolucky on GitHub.

I originally, and erroneously, posted this issue to DBAL (https://github.com/doctrine/dbal/issues/2370). In a nutshell, when I use the name 'user' for a table, when I go to generate the entity schema and classes, the name of the files and class generated for user end up quoted. I understand that Doctrine means to quote the keyword in SQL queries to avoid ambiguity on the database, but it feels like this quoting leaked a little too far by naming my files (literally) '"user".yml' and '"user".php'.

Originally created by @d42ohpaz on GitHub (Apr 21, 2016). Originally assigned to: @ostrolucky on GitHub. I originally, and erroneously, posted this issue to DBAL (https://github.com/doctrine/dbal/issues/2370). In a nutshell, when I use the name 'user' for a table, when I go to generate the entity schema and classes, the name of the files and class generated for user end up quoted. I understand that Doctrine means to quote the keyword in SQL queries to avoid ambiguity on the database, but it feels like this quoting leaked a little too far by naming my files (literally) '"user".yml' and '"user".php'.
admin added the Invalid label 2026-01-22 14:58:35 +01:00
admin closed this issue 2026-01-22 14:58:35 +01:00
Author
Owner

@ostrolucky commented on GitHub (Aug 7, 2018):

You are not supposed to put into CLI names in quotes. Furthermore, command for generating entities has been deprecated.

@ostrolucky commented on GitHub (Aug 7, 2018): You are not supposed to put into CLI names in quotes. Furthermore, command for generating entities has been deprecated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5110