Hello, for a project i'm currently working on, im trying to pass a set of objects all somehow linked to one object.
I'm currently blacked out and can't seem to find a proper solution.
The situation is like this. I have a product object, on which a few insurance packages apply. I need to pass this information to the view, but I have to be able to retrieve the proper packages for the proper products. so it looks like this...
Product 1 has package 1, 2, 3 Product 2 has package 2,3,5,6 Product 3 has package 2,4,6,7
The problem is that there can be a different number of products and a different number of packages
Any ideas? The answer is probably simple, but I'm a little bit too tired to find it out...