Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Field not updating

Go to End

2 Posts   1094 Views


Community Member, 61 Posts

20 August 2009 at 8:51am

I have setup a new database (HTMLText) & CMS field (HTMLEditor)

static $has_one = array (
'BannerArea' => 'HTMLText'

$f->addFieldToTab("Root.Content.Banners", new HTMLEditorField('BannerArea'));

However, whatever I put into the editor for that field is not updated - it always takes the first entry.

Any help would be appreciated


Forum Moderator, 5523 Posts

20 August 2009 at 12:16pm

You should have BannerArea in your $db array rather then has_one as it is a field, not a relationship