1) i have a products table and a categories table
2) each product has a category associated with it
3) and each category has products associated with it
So there could be many products in one category, and many categories with one product.
My assumption is I will need to use an HABTM association.
Am I evaluating this properly? Or would HABTM be overkill for my purposes?
--
View this message in context: http://n2.nabble.com/association-type-for-model-hasMany-or-HABTM-tp2540870p2540870.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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:
Post a Comment