#1604: incorrect sql generated from models when using alias on local/foreign key
columns
--------------------------------------------+-------------------------------
Reporter: floriank | Owner: jwage
Type: defect | Status: new
Priority: major | Milestone: Unknown
Component: Import/Export | Version: 1.1-DEV
Keywords: generate sql foreign key alias | Has_test: 1
Mystatus: Pending Core Response | Has_patch: 1
--------------------------------------------+-------------------------------
When generating an SQL-DDL-query from models that have an alias on a
column used for local/foreign key the generated SQL wrongly contains
{{{
...FOREIGN KEY([alias-name])...
}}}
instead of
{{{
...FOREIGN KEY([column-name])...
}}}
My testcase is based on Doctrine 1.1 with Connection_Mysql, but it should
refer to prior versions of Doctrine as well as other databases. I also
attached a patch which fixes the problem for me.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1604>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---