mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-142: Join columns can't be quoted #177
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 @doctrinebot on GitHub (Nov 13, 2009).
Jira issue originally created by user reinier.kip:
Join columns can't be quoted like columns using name="
quoted". Using annotation driver.Not sure where this would occur. AnnotationDriver? ORM? DBAL?
@doctrinebot commented on GitHub (Nov 13, 2009):
Comment created by romanb:
Actually this should work already. Can you give an example that doesnt work?
Of course, this quoting is really only a workaround. Its best to avoid it altogether by avoiding reserved words.
@doctrinebot commented on GitHub (Nov 13, 2009):
Comment created by romanb:
If you're interested in how the quoting works at all currently, see one of my comments here: http://www.doctrine-project.org/jira/browse/DDC-88
@doctrinebot commented on GitHub (Nov 13, 2009):
Comment created by reinier.kip:
I used
In OneToOneMapping#getQuotedJoinColumnName($joinColumn, $platform) it does this:
while $this->joinColumns contains this:
@doctrinebot commented on GitHub (Nov 13, 2009):
Comment created by romanb:
I see. Thanks. Either the join columns need to be indexed by name or the method must be changed but the former is probably more effective. It might have some side-effects to watch out for when changing that though. Scheduling for A4 for now.
@doctrinebot commented on GitHub (Mar 5, 2010):
Comment created by romanb:
After some discussion support for quoting join column names and discriminator column names has been dropped for the sake of simplicity.
Quoting table names and regular column names will continue to be supported.
The docs have been updated accordingly.
@doctrinebot commented on GitHub (Mar 5, 2010):
Issue was closed with resolution "Won't Fix"