#1621: aliases in foreign key columns / fields
------------------------+---------------------------------------------------
  Reporter:  floriank   |       Owner:  romanb                       
      Type:  defect     |      Status:  reopened                     
  Priority:  major      |   Milestone:  1.1.0                        
 Component:  Relations  |     Version:  1.1-DEV                      
Resolution:             |    Keywords:  alias foreign local relations
  Has_test:  1          |    Mystatus:  Pending Core Response        
 Has_patch:  1          |  
------------------------+---------------------------------------------------
Changes (by floriank):

  * status:  closed => reopened
  * resolution:  fixed =>

Old description:

> When using aliases in column names of reference-fields (local/foreign) in
> associations Doctrine generates invalid SQL (see attached testcase and
> discussion on [http://groups.google.com/group/doctrine-
> user/browse_thread/thread/d8accd313576d5f0]). This seems to be related to
> [http://trac.doctrine-project.org/ticket/1341], where some fixing was
> made for one-to-many-relations, but apparently not enough for many-to-
> many-relations.
>
> I tried to fix this for myself (see attached patch), which works for the
> testcase i made, but not for my real application where it breaks my
> validation, although im not sure if the validation itself is the problem
> rather than the fix i made. Maybe you can take a look at my patch and
> test yourself for if it does not break any other applications. I work
> with Doctrine 1.1, but this should be valid for 1.0 as well.

New description:

 When using aliases in column names of reference-fields (local/foreign) in
 associations Doctrine generates invalid SQL (see attached testcase and
 discussion on [http://groups.google.com/group/doctrine-
 user/browse_thread/thread/d8accd313576d5f0]). This seems to be related to
 [http://trac.doctrine-project.org/ticket/1341], where some fixing was made
 for one-to-many-relations, but apparently not enough for many-to-many-
 relations.

 I tried to fix this for myself (see attached patch), which works for the
 testcase i made, but not for my real application where it breaks my
 validation, although im not sure if the validation itself is the problem
 rather than the fix i made. Maybe you can take a look at my patch and test
 yourself for if it does not break any other applications. I work with
 Doctrine 1.1, but this should be valid for 1.0 as well.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1621#comment:2>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to