dynamic /
foxystripe
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Dynamic\FoxyStripe\Model; |
||
| 4 | |||
| 5 | use SilverStripe\ORM\DataObject; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Class OrderOption |
||
| 9 | * @package Dynamic\FoxyStripe\Model |
||
| 10 | * |
||
| 11 | * @property \SilverStripe\ORM\FieldType\DBVarchar Name |
||
| 12 | * @property \SilverStripe\ORM\FieldType\DBVarchar Value |
||
| 13 | * @property int OrderDetailID |
||
| 14 | * |
||
| 15 | * @method OrderDetail OrderDetail |
||
| 16 | */ |
||
| 17 | class OrderOption extends DataObject |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private static $db = array( |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 23 | 'Name' => 'Varchar(200)', |
||
| 24 | 'Value' => 'Varchar(200)', |
||
| 25 | ); |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | private static $has_one = array( |
||
|
0 ignored issues
–
show
|
|||
| 31 | 'OrderDetail' => OrderDetail::class, |
||
| 32 | ); |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var array |
||
| 36 | */ |
||
| 37 | private static $summary_fields = array( |
||
|
0 ignored issues
–
show
|
|||
| 38 | 'Name', |
||
| 39 | 'Value', |
||
| 40 | ); |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var string |
||
| 44 | */ |
||
| 45 | private static $table_name = 'OrderOption'; |
||
|
0 ignored issues
–
show
|
|||
| 46 | } |
||
| 47 |