hey guys i have a favorites db, and a posts db. a user can save a post, and its marked in the favorites db using user_id and post_id
I was wondering if there is a way to attach favorites to posts, so any time i read the posts it will also determine if it is a favorite or not. I was thinking of setting up a posts HasMany relationship, but when I do it now it gets ALL the favorites, just not that users. I was thinking of setting the conditions in the hasMany section to "user_id = $this->Session->read(User.id)" but u cant do this kind of thing in the model. any ideas? danke :\ rocket --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
