I have a situation where a user saved a submission with data A, B and C stored in the submission_settings table. After changing a specific field and saving the submission data B and C is not valid anymore hence i need to remove this data from the table. I see no possible way in the implementation of DAO to do this without hacks but there is already a stale handling in setData() which could be reused. I moved this code part to a separate method called removeStaleDataObjectSettings and now I can use it like this
Can you describe your data use case in more detail? I don’t think I’ve run into this circumstance before and would like to make sure I understand the situation.
Regards,
Alec Smecher
Public Knowledge Project Team