Sunday, January 2, 2011

Multi HABTM association

I am having troubles setting up this association for my application. I
am trying to do it in the least complicated way possible, but I am
rather new to cake.

I have 2 models (Documents, Courses) which each need to have comments.
I do no want to use multiple tables I would rather store all the
comments in the same table in the database using cakes HABTM
association. So I would only need one model (Comments) to essentially
keep track of both (Documents, Courses) models.

How is the best way to accomplish this?

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: