| 1 | <?php |
||
| 8 | class PickUpOrDeliveryModifierOptionsCountry extends DataExtension |
||
|
|
|||
| 9 | { |
||
| 10 | private static $belongs_many_many = array( |
||
| 11 | "AvailableInCountries" => "PickUpOrDeliveryModifierOptions", |
||
| 12 | ); |
||
| 13 | private static $many_many = array( |
||
| 14 | "ExcludeFromCountries" => "PickUpOrDeliveryModifierOptions" |
||
| 15 | ); |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Update Fields |
||
| 19 | * @return FieldList |
||
| 20 | */ |
||
| 21 | public function updateCMSFields(FieldList $fields) |
||
| 44 | } |
||
| 45 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.