| 1 | <?php |
||
| 2 | |||
| 3 | namespace Dynamic\Foxy\Orders\Model; |
||
| 4 | |||
| 5 | use Dynamic\Foxy\Model\Variation; |
||
| 6 | use SilverStripe\ORM\DataObject; |
||
| 7 | |||
| 8 | class OrderVariation extends DataObject |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | private static $db = array( |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 14 | 'Name' => 'Varchar(200)', |
||
| 15 | 'Value' => 'Varchar(200)', |
||
| 16 | ); |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | private static $has_one = array( |
||
|
0 ignored issues
–
show
|
|||
| 22 | 'OrderDetail' => OrderDetail::class, |
||
| 23 | 'Variation' => Variation::class, |
||
| 24 | ); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | private static $summary_fields = array( |
||
|
0 ignored issues
–
show
|
|||
| 30 | 'Name', |
||
| 31 | 'Value', |
||
| 32 | ); |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | private static $table_name = 'FoxyOrderVariation'; |
||
|
0 ignored issues
–
show
|
|||
| 38 | } |
||
| 39 |