Hi,

I'm doing a private message system for my website. I've created a
database called messages, which contains :

id,sender_id,reciever_id,subject,message,date

On my model message.php, I've got $belongsto => USER and in my model
USER i've added $hasmany MESSAGE

Now that I've got a reciever_id and sender_id, what should I do with
the foreign key !?! blink.gif Should I put sender_id for the foreign
key, or create an outbox and inbox table or ... ? What do you
suggest ?

Thanks

--~--~---------~--~----~------------~-------~--~----~
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