This plugin is really powerful for nested relationships and it should be able to handle HasMany and BelongsToMany:
Has Many Through with a Belongs To
A product belongs to a country. A country has many products.
A product belongs to a category. A category has many products.
With the above relationships, I'd assign a category_id and a country_id to a product.
Is there any way to find out, through products , what countries a category has?
For example, a TV product belongs to the country Belguim and the category Electronics. When I look under the category electronics, I would want to get all the countries that have electronics, in this case that would be Belgium.
I've looked at hasManyThrough but there is a belongsTo relationship involved...
category hasMany product belongsTo country
Please or to participate in this conversation.