I was curious how to approach this idea.
 
A user can send a message to another user but how would you define the
table?
 
id
user_id => person receiving
from_id =>person sending
title
message
created
 
user hasMany messages but how would you determine that both users get the
message?
 
Would you need to query where user_id OR from_id => $currentUserId to get
all messages related to that user?
 
 
Dave

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