Having read the manual multiple times I still can't figure out the
ORM.

Imagine I have a  user that hasMany friends and each user hasMany
Posts. The problem I'm trying to solve is how to retrieve every Post
from all my friends.

here are the options that I'm considering,

1 - Manual query.

2 - Query the User with contain to retrieve the Friends, build an
array with each user_id of my friends and then make another query
using Post.user_id => <friend> array.


Is there a better way to do this?

Thanks in advance

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