Version: current

     1 <?php
     2 // тип портрета
     3 class PortraitType extends DataObject {
     4     static $db = array(
     5         'Title' => 'Varchar',
     6         'Price' => 'Decimal(10,2)',
     7         'MaxPersonsCount' => 'Int',
     8     );
     9
    10     static $has_one = array(
    11         'Image' => 'Image',
    12     );
    13 }

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