View Full Version : Associating lists with hasMany attribute

29 Aug 2011, 2:36 AM
Hi guys,

I have a question. Here's the thing, I have 4 classes represented by simple lists, which i'd like to link to eachother using hasMany associations. I don't want to use a NestedList because it makes it more difficult to customize using templates I think so. So I was thinking about creating a model for each class obviously, and a list for each one of them as well. But then I don't know how to relate them to each other. Should I create for example a user_id on the products class relate the product with the user? Is there any other way? Thanks in advance. :)