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?
Arrrrggh! This is my third thread and replied to all of them fixing them soon after raising it.
Turns out 'myfield' in $childObject->myfield = $new_data; was spelt incorrectly and there is no failure, no report of setting a field that doesn't exist... I guess this is a great feature that I did not know about!
Next time maybe I'll need some help from you guys!
Thanks Dale, I am using Notepad++ with an FTP plugin at the moment... not the best IDE... I was (as soon as a new project starts up) start going to use PHPEclipse with code completion, goto declaration and debugging... how would that compare with NetBeans?
They are very similar in capabilities. I prefer NetBeans because all the goodies (SVN, SQL browser, xdebug) are part of the core platform, and Eclipse always makes me install a dozen plugins to get it to a usable state.
Both will be a great improvement over your current setup. More at http://doc.silverstripe.org/doku.php?id=tools