-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doctrine is not Auto-Escaping Columns #5874
Comments
See #2409. |
This is a well known limitation documented at http://doctrine-orm.readthedocs.io/projects/doctrine-orm/en/latest/reference/limitations-and-known-issues.html#identifier-quoting-and-legacy-databases We will change this for Doctrine 3.x, but for 2.x, auto-quoting of identifiers is a no-go, mostly because of case sensitivity issues. Please note that this doesn't cause security issues per se, as mappings are not user input, but static application information. |
@Ocramius Understood. Since this is the case, is there a way to check out Doctrine 3.x? All of my searching has turned up null. |
Check the |
This is due to a limitation of Doctrine. See here: doctrine/orm#5874
@richRemer you know that we still get email notifications, even if you delete messages, right? |
I assumed so. I deleted it because I realized I misunderstood your Doctrine
Beta 3 release notes from 2010 to be Doctrine 3 Beta. Leaving it up there
served no purpose.
The new release could really use some SEO. I could not find any roadmap for
release, so the promise for a fix in v3 is not useful.
…On Oct 19, 2017 8:31 AM, "Marco Pivetta" ***@***.***> wrote:
@richRemer <https://github.com/richremer> you know that we still get
email notifications, even if you delete messages, right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5874 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABrlGbIKFLzjzDUza50sp_7fQDkOUCEGks5st2tMgaJpZM4I12PU>
.
|
Hi, is there any way to escape reserved words in XML metatdata? Putting Thanks, |
The documentation page mention seems to have been moved here. |
Doctrine 3.1. The problem is relevant. |
We have an entity with the column 'limit', but this is a reserved keyword in MySQL. Logically, Doctrine ORM should be Auto-Escaping these Columns, but it's stuck in this ideology that we must escape them in the Column name.
According to Issue #2409, we tried the following workaround.
This does work for our current situation, but this is a very fragile train of logic and Doctrine ORM should be providing this level of safety, regardless of whether it is a reserved keyword or not.
The text was updated successfully, but these errors were encountered: