mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Generated table/class names quoted for keywords #5110
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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'.
@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.