I will not state whether it is a good or a bad idea! Rather I would like to ask the question:
Do you have a need for this relationship Tag HABTM Tag? In other words, what are the reason/requirement for making this solution? If you can answer the above, and your solution solves it, then it is a good idea :) Enjoy, John On Jan 14, 8:47 pm, Ian R <[email protected]> wrote: > Hey! So ideally, in the whole Posts, Users, Tags model, I'd like to > have Tags which are "related to" other Tags. This seems simple enough > though I haven't gotten it working quite yet. > > I've set up a "tags_tags" table with fields id, tag1_id and tag2_id... > and in my Tag model I've set these as the $hasAndBelongsToMany[Tag] > foreignKey and associationForeignKey. I'm not really sure what else > I'll need to do, but here's my issue: > > This self-referencing seems a little convoluted (though mostly > straightforward), and I haven't found any reference in these archives > or on the internet anywhere, really. SOMETIMES :) when I have an > interesting idea like this and can't find evidence that it has already > been thought of, it turns out that it's not such a great idea. So, > basically, is this a stupid idea? Tags HABTM Tags? > > thanks! > Ian
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
