1 <?php
2 3 4 5 6 7 8 9
10
11 class SocleSection extends DataObject {
12 static $db = array(
13 'Title' => 'Varchar(100)'
14 );
15
16 static $belongs_many_many = array(
17 'SocleSizes' => 'SocleSize',
18 );
19
20 static function get_sections() {
21 return DataObject::get('SocleSection');
22 }
23
24 function FieldTitle() {
25 return sprintf(_t('SocleSection.FieldTitle'), $this->Title);
26 }
27
28 function getCMSFields() {
29 $fields = parent::getCMSFields();
30 $fields->removeByName('SocleSizes');
31 return $fields;
32 }
33 }
[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.
-