[eluser]felix_[/eluser]
Hey there,
I've got a question which belongs to best practice for a common problem I think.
Let's say I've got a model producttyp, product and shop
Every product has got a producttype and a shop has many products and can offer different producttypes
Now I want to edit the products of a shop which belong to a special producttype
I show al list with all available products to this type and for each product I show a chechkbox which is preselected if the shop already offers this product.
Then i change the selections.
In my controller I get the list of id's with the new products.
What is the best way to update the relations between shop and products !?
Right now I manually create an array with the products I muste delete from the relation and one with the new ones.
Is there any automatic way to do something like this?