Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Bug in Object.tpl in 1.1.1

propel
Discussion topic

Back to topic list

Bug in Object.tpl in 1.1.1

Reply

Author Johan Nilsson <johan dot nilsson at ongame dot com>
Full name Johan Nilsson <johan dot nilsson at ongame dot com>
Date 2006-10-04 05:36:42 PDT
Message Hey everyone,

I could not find where to setup a ticket in trac so I commit the bug
report here.

I came across a weird behaviour when setting up a schema with multiple
foreignskeys to the same table.

In Object.tpl naming of $collName is set up different for different
places, for example see line #696 and down to line #716 and compare whit
the naming of $colName that are set up between line #377 and #390.

Since they are referencing to each other I guess that they have to be
named the same, please correct if iam overlooking something here.

Iam using Propel: 1.1.1 and PHP 5.0.5.

I have not had the possibility to test this with a newer version of
propel, to see if it is fixed there, and right now it is not an
alternative to upgrade either.

I attach a patch to fix the issue, please respond if you now of any
other impact this might have.

Bellow are some stripped xml that demonstrate how the foreign keys are
set up;

<foreign-key foreignTable="tab_test" name="fk_test_test_1">
<reference local="mylocal_id" foreign="foreign_id" />
<reference local=" mylocal_key" foreign="foreign_key" />
</foreign-key>

<foreign-key foreignTable="tab_test" name="fk_test_test_2">
<reference local="mylocal_id2" foreign="foreign_id2" />
<reference local=" mylocal_key2" foreign="foreign_key2" />
</foreign-key>

Regards

Johan Nilsson
Attachments

« Previous message in topic | 1 of 13 | Next message in topic »

Messages

Show all messages in topic

Bug in Object.tpl in 1.1.1 Johan Nilsson <johan dot nilsson at ongame dot com> Johan Nilsson <johan dot nilsson at ongame dot com> 2006-10-04 05:36:42 PDT
     Re: [propel-dev] Bug in Object.tpl in 1.1.1 Soenke Ruempler <soenke at ruempler dot eu> Soenke Ruempler <soenke at ruempler dot eu> 2006-10-04 05:38:59 PDT
         RE: [propel-dev] Bug in Object.tpl in 1.1.1 Johan Nilsson <johan dot nilsson at ongame dot com> Johan Nilsson <johan dot nilsson at ongame dot com> 2006-10-04 05:52:24 PDT
             Re: [propel-dev] Bug in Object.tpl in 1.1.1 hlellelid Hans Lellelid 2006-10-04 05:57:34 PDT
                 RE: [propel-dev] Bug in Object.tpl in 1.1.1 Johan Nilsson <johan dot nilsson at ongame dot com> Johan Nilsson <johan dot nilsson at ongame dot com> 2006-10-04 05:59:10 PDT
                     Re: [propel-dev] Bug in Object.tpl in 1.1.1 hlellelid Hans Lellelid 2006-10-04 06:03:22 PDT
                 Re: [propel-dev] Bug in Object.tpl in 1.1.1 Soenke Ruempler <soenke at ruempler dot eu> Soenke Ruempler <soenke at ruempler dot eu> 2006-10-04 06:08:29 PDT
                     Re: [propel-dev] Bug in Object.tpl in 1.1.1 hlellelid Hans Lellelid 2006-10-04 06:11:57 PDT
                         Re: [propel-dev] Bug in Object.tpl in 1.1.1 hlellelid Hans Lellelid 2006-10-04 06:19:34 PDT
                             Re: [propel-dev] Bug in Object.tpl in 1.1.1 Soenke Ruempler <soenke at ruempler dot eu> Soenke Ruempler <soenke at ruempler dot eu> 2006-10-04 06:23:11 PDT
                                 Re: [propel-dev] Bug in Object.tpl in 1.1.1 hlellelid Hans Lellelid 2006-10-04 06:26:19 PDT
                                     RE: [propel-dev] Bug in Object.tpl in 1.1.1 Johan Nilsson <johan dot nilsson at ongame dot com> Johan Nilsson <johan dot nilsson at ongame dot com> 2006-10-04 06:28:01 PDT
                                         Re: [propel-dev] Bug in Object.tpl in 1.1.1 hlellelid Hans Lellelid 2006-10-04 06:31:28 PDT
Messages per page: