Guite / MostGenerator

Transformation cartridges for generating Symfony bundles from ModuleStudio models.
https://modulestudio.de
23 stars 2 forks source link

Handle upload field reusage properly #400

Closed Guite closed 9 years ago

Guite commented 11 years ago

When an existing entity with upload fields is reused then both entities share the same upload files. Thus prevent deletion of files during deletion unless there exists no other entity using them. Affects option for deleting an optional upload file when updating, too.

Guite commented 9 years ago

This issue is invalid, upload fields are reset during the copy: https://github.com/Guite/MostGenerator/blob/master/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/zclassic/models/entity/EntityMethods.xtend#L529