How are these 3 models related? Can a Topic belong to more than one Category?
And how is Profile related to either of the others? A Topic has a Profile? One or more? What about Category? On Tue, Jul 21, 2009 at 11:06 AM, ulterior<[email protected]> wrote: > > I'm somewhat new to cake, this is my second app and I'm having > problems with relationships. The first app I created was pretty > straightforward and I had a great time writing it in cake but my > database skills aren't up to par with my php! Here goes: > > I have three tables that contain data which I want to relate, > profiles, categories and topics. I created a categories_topics table > with category_id and topic_id and that's just fine. > > However, I want to link the categories and topics to profiles so I > created categories_topics_profiles which contains the > category_topic_id (from the join table) and the profile_id (to link to > the Profiles model) but it's giving me errors when I try to run a > simple find. > > Is this the right way to build the tables or am I missing something? > Any help would be GREATLY appreciated. > > Thanks, > -Chris > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
