Hi,
I have code that is as follows...
$childObject = DataObject::get_by_id($this->sourceClass, $ID);
$childObject->myfield = $new_data;
$childObject->write();
and the $new data is not getting to the written back to the database.
I have tried $childObject->forceChange(); before the write and tried $childObject->write(false,false,true); to force the write to write... I have also output the $childObject->myfield after being set and can confirm $new_data is in there...
...what else can I do to ensure I write this data back?
Any help much appreciated.
Barry