cannot name an entity "Group" : MySQL error because group is not escaped #6366

Closed
opened 2026-01-22 15:31:53 +01:00 by admin · 3 comments
Owner

Originally created by @kaamui on GitHub (Dec 10, 2019).

Originally assigned to: @Ocramius on GitHub.

Bug Report

Q A
BC Break no
Symfony Version 4.3.1

Summary

All's in the title.

Current behavior

image

How to reproduce

Create an entity named Group.
Try to use findAll() with its associated repository

Expected behavior

Doctrine should escape table names.

Originally created by @kaamui on GitHub (Dec 10, 2019). Originally assigned to: @Ocramius on GitHub. ### Bug Report <!-- Fill in the relevant information below to help triage your issue. --> | Q | A |------------ | ------ | BC Break | no | Symfony Version | 4.3.1 #### Summary All's in the title. #### Current behavior ![image](https://user-images.githubusercontent.com/11720903/70533202-dc944d00-1b58-11ea-94e7-e49f6469a391.png) #### How to reproduce Create an entity named Group. Try to use findAll() with its associated repository #### Expected behavior Doctrine should escape table names.
admin added the InvalidQuestion labels 2026-01-22 15:31:53 +01:00
admin closed this issue 2026-01-22 15:31:53 +01:00
Author
Owner
@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
Author
Owner

@kaamui commented on GitHub (Dec 10, 2019):

Oops, sorry, and thanks for your reactivity

@kaamui commented on GitHub (Dec 10, 2019): Oops, sorry, and thanks for your reactivity
Author
Owner

@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 ?

@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 ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6366