> How about the relation..? > > Since User has Many message (in inbox), but User also has Many message (that > the user sent to other User).
So? User hasMany SentMessage (className: Message, foreignKey: sender_id), User hasMany ReceivedMessage (className: Message, foreignKey: receiver_id) Done. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
