help desk
for saving an object that was ::get throught a Model package, you need to make sure your fields are clean before calling ::set.
Here is a quick solution that may help you, exemple for table ps_patient_statistic
// Get the statistic statistic = ps_patient_statistic::get(1234); // Modify statistic ... // Clean up statistic object before save statistic = sed_dev::context_filter(statistic, ps_patient_statistic::fields); // Removes virtual fields statistic = sed_dev::context_map(statistic, sed_dev::sn_fields); // Removes all sn fields // Save statistic statistic_rs = ps_patient_statistic::set(statistic.uid, statistic);
Replied on: 2022-12-08 09:22:00