This may well be a devastatingly obvious one but i have a project for
an online shopping site and i thought i'd use it as an opportunity to
get to grips with cakephp - my problem is this:

i have a table with products and a table with related products - at the
moment the related products table holds two columns - each containing
product_ids so if i'm viewing a product i can look at it's id and
lookup any related products in the related products table.

Now, how do i do this with cakephp? surely i can't create a $hasMany
relationship in the products model saying the products model has a
$hasMany relationship with the products model? Or can i?

haven't had a chance to try it out as i'm at work so thought i'd post a
message here on the group.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to