mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
cannot name an entity "Group" : MySQL error because group is not escaped
#6366
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 @kaamui on GitHub (Dec 10, 2019).
Originally assigned to: @Ocramius on GitHub.
Bug Report
Summary
All's in the title.
Current behavior
How to reproduce
Create an entity named Group.
Try to use findAll() with its associated repository
Expected behavior
Doctrine should escape table names.
@Ocramius commented on GitHub (Dec 10, 2019):
https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/basic-mapping.html#quoting-reserved-words
@kaamui commented on GitHub (Dec 10, 2019):
Oops, sorry, and thanks for your reactivity
@kaamui commented on GitHub (Dec 10, 2019):
Just to know, when it is written that, "Doctrine does not quote identifiers automatically, because it leads to more problems than it would solve", what kind of issues did you encounter when you tried to quote identifiers automatically ?