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.

General Questions

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

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

Field not updating


2 Posts   873 Views


20 August 2009 at 8:51am Community Member, 61 Posts

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


20 August 2009 at 12:16pm Forum Moderator, 5511 Posts

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