29 January 2010 at 11:06pm
(Last edited: 29 January 2010 11:07pm),
is there a way to rename a filed in the model, while preserving it's data?
The reason why I'm asking:
static $has_one = array(
'Image' => 'Image', ...
in a page. This causes problems with tinyMCE [url=http://www.silverstripe.org/data-model-questions/show/273701#post273701](see here)[/url]. On my other projects i just removed it and added a new image called PageImage. But then I had to manualy reselect all the images. I can't do this on the current project. There are way to many pages with images. So I'm wondering if it is possible to rename the image field and keep all the data.