lib/spiderfw/model/mappers/db_mapper.rb in spiderfw-0.6.0 vs lib/spiderfw/model/mappers/db_mapper.rb in spiderfw-0.6.1

- old
+ new

@@ -889,10 +889,10 @@ end prev_task = nil set.each do |set_obj| sub_task = MapperTask.new(set_obj, :save) set_obj.set_modified(element.reverse) if element.reverse - if set_obj.class.attributes[:junction] && delete_ass + if set_obj.class.attributes[:sub_model] && delete_ass set_obj.class.primary_keys.each{ |pk| set_obj.set(pk, nil) } end if prev_task deps << [sub_task, prev_task] elsif delete_ass