hi,

accidentaly I came across this, which might help you with your
problem:

http://www.webiscake.com/model-x-with-multiple-associations-leading-to-model-y/

the code is:

<?php
class Message extends AppModel {

        var $name = 'Message';
        var $belongsTo = array(
                //In most case, this would be User instead of Sender
                'Sender' => array('className' => 'User',
                                'foreignKey' => 'sender_id'

                ),
                //Same goes for Receiver
                'Receiver' => array('className' => 'User',
                                'foreignKey' => 'receiver_id'
                ),
        );
}
?>

if anyone with real expertise could confirm that would be great.

and hi all, btw.
good luck!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to