Version: current

     1 <?php
     2 /**
     3  * Направление
     4  *
     5  * @author inxo
     6  */
     7 class DocumentDirection extends DataObject {
     8     static $db = array(
     9         'Title' => 'Varchar(500)'
    10     );
    11     static $has_many = array(
    12         'Items' => 'DocumentItem',
    13     );
    14     static $defaults = array(
    15         'Title' => 'Новый раздел'
    16     );
    17     static $searchable_fields = array(
    18         'Title'
    19     );
    20     static $summary_fields = array(
    21         'Title'
    22     );
    23 }
    24 ?>
    25

[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. -