Abdelkrim / patajons

Automatically exported from code.google.com/p/patajons
1 stars 0 forks source link

image get duplicated #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add an object with an image X
2. save object
3. create new one
4. add same image X

What is the expected output? What do you see instead?
image should be saved only once but gets duplicated

Please use labels and text to provide additional information.

Original issue reported on code.google.com by maaz...@gmail.com on 15 Mar 2012 at 5:12

GoogleCodeExporter commented 9 years ago
fixed by using reference properties and an n to m relation between items and 
images
this was done by adding an ParanYoItemImage class to map the relations

still need to handle a proper and clean delete

Original comment by maaz...@gmail.com on 19 Mar 2012 at 4:04

GoogleCodeExporter commented 9 years ago
fixed by using a class to map relations between images and items

Original comment by maaz...@gmail.com on 20 Mar 2012 at 1:58

GoogleCodeExporter commented 9 years ago

Original comment by maaz...@gmail.com on 20 Mar 2012 at 2:31