I am perplexed about how to efficiently accomplish the following.
I have the following relation scheme: 1 portfolio -> Many Users in each Portfolio -> Each User owns many Products
Entities: Portfolio, User, Products
What I would like to display is in one page:
-
The name of the portfolio
-
The title of a user
-
CGridView of all products owned by that user
It seems, if CGridView were not being used, you would populate your model appropriately and then use a foreach loop to loop through each user relation and then loop through the products related to that user. And create a render_partial view for the products and for the user.
However, I am at a complete loss as how to accomplish this with CGridView.
Any advice is much, much appreciated!