OK, I've managed to confuse myself. Here's the model:
Articles Posts Tags A tag has a many to many relationship with both articles and posts, so a single tag object has a list of articles and a list of posts. (nice for searching by tags) An article or a post has a list of tags. That works just fine. Now I am trying to create a little form wherein a user can type a tag name in a single input box. The associated action should either associate an existing (matching) tag to the article, or create a new tag if nothing matches, and then associate the new tag to the article. A similar form for posts will do the same thing. I've tied myself in knots trying to figure out the "right" way to do this. Or even get it to work. Am i giving myself unnecessary headaches using a many to many relationship? Should I just use a 1 to many and let there be many tags with the same name? cheers, iceaxe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
