Hi,

I'm trying to follow the docs but I'm still confused as to what to do to get
relationships going. Here are my models:

Product + ProductTable
ProductCategory + ProductCategoryTable

I don't want cascading actions, so I left out $_dependentTables as the docs
say.

My tables are setup so products.category_id is a link to the category the
product belongs to. The product_categories table doesn't have a reference to
the product. So:

products.id
products.category_id

product_categories.id

I want to be able to iterate through the products a category has and also
have access to the category data a product belongs to. With that, what would
my class definitions look like?

I'm confused with the terminology used in the docs. Dependant table and
parent table don't really fit in here. From my perspective, neither of these
tables are parents.

Anyone want to post a simple set of classes that would enable the
functionality I'm seeking? :)
Matt

Reply via email to