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
$submissionDao = Application::getSubmissionDAO(); $submissionDao->removeStaleDataObjectSettings('submission_settings', array('submission_id' => $submission->getId()), $staleSettingNames);
Would this be a change you are willing to include in the GitHub repo? Shall i prove a PR then?