| Total Complexity | 1 | 
| Total Lines | 31 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 10 | class CustomerExtension extends DataExtension | ||
| 11 | { | ||
| 12 | /** | ||
| 13 | * @var array | ||
| 14 | */ | ||
| 15 | private static $db = [ | ||
|  | |||
| 16 | 'Customer_ID' => 'Int', // ID from Foxy system | ||
| 17 | ]; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * @var array | ||
| 21 | */ | ||
| 22 | private static $has_many = [ | ||
| 23 | 'Orders' => Order::class, | ||
| 24 | ]; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @var array | ||
| 28 | */ | ||
| 29 | private static $indexes = [ | ||
| 30 | 'Customer_ID' => true, // make unique | ||
| 31 | ]; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * @param FieldList $fields | ||
| 35 | */ | ||
| 36 | public function updateCMSFields(FieldList $fields) | ||
| 44 |