Orm: Doctrine 3: Auto-escape column names

Created on 23 Jan 2018  路  3Comments  路  Source: doctrine/orm

Hi guys!

In #5874, Ocramius mentioned that the auto-escaping of column names for reserved keywords couldn't happen for Doctrine 2, but it could happen in Doctrine 3. I couldn't find any issue in the Doctrine 3 milestone, so I wanted to make sure the idea didn't get lost: I just saw a beginner hit this and get confused today (so 3.0 is our chance).

Is this still a "go" (i.e. yes, something we at least can do, assuming someone does the work) for Doctrine 3?

Thanks!

BC Break Improvement

Most helpful comment

Yeah, I think this should happen for 3.x.

We will have bugs with people doing mixed windows/mac/linux deployments, but less problems with reserved keywords used in mappings, and we can also get rid of the awkward "quoting in mappings" syntax.

All 3 comments

Yeah, I think this should happen for 3.x.

We will have bugs with people doing mixed windows/mac/linux deployments, but less problems with reserved keywords used in mappings, and we can also get rid of the awkward "quoting in mappings" syntax.

This already happened in master

This has been implemented in 08e2f779e3881f97c8136129fe9f951a9de2cb0d (and following commits) and the issue should closed.

Was this page helpful?
0 / 5 - 0 ratings