Thanks for your time.

It was realy easy like you wrote. I just defined two $belongsTo
accociations like this (I changed label "courses" to "rides")

var $belongsTo = array(
                        'City1' =>
                         array('className'    => 'City',
                               'conditions'   => '',
                               'order'        => '',
                               'foreignKey'   => 'fromCity_id',
                               'counterCache' => ''),

                        'City2' =>
                         array('className'    => 'City',
                               'conditions'   => '',
                               'order'        => '',
                               'foreignKey'   => 'toCity_id',
                               'counterCache' => ''),
        );


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to