Wednesday, December 30, 2009

HABTM with one Tag Model and 2 or more Other Models

Hi All,
So I have a habtm with Tags and Posts, now I want to add more tables
that have HABTM relationships with Tags.... is this possible? Should I
create a separated table? It does not seem neccesary to do so but I
seem mistaken. I suppose I would just need to create a new table
called othermodel_tags to link each other model to a tag. Then just
say do things as normal in my models.

Is there are different way I should be doing this? Is there anything
else I should know.

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: