Version: current

     1 <?php
     2
     3 class Notification extends DataObject{
     4     static $db = array(
     5         'Email' => 'Varchar(255)',
     6         'Title' => 'Varchar(255)',
     7         'Failure' => 'Boolean',
     8         'Success' => "Boolean",
     9     );
    10
    11     static $has_one = array(
    12         'ImportSiteConfig' => 'SiteConfig'
    13     );
    14
    15     static $defaults = array(
    16         'ImportSiteConfigID' => '1',
    17     );
    18
    19     function getCMSFields() {
    20         $fields = parent::getCMSFields();
    21         $fields->replaceField('ImportSiteConfigID', new HiddenField('ImportSiteConfigID','ImportSiteConfigID','1'));
    22         return $fields;
    23     }
    24 }

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -