1 | <?php |
||
11 | class ProductQuestion_ProductVariationsAdditions extends DataExtension |
||
|
|||
12 | { |
||
13 | private static $many_many = array( |
||
14 | 'ProductAttributeTypes' => 'ProductAttributeType', |
||
15 | 'ProductAttributeValues' => 'ProductAttributeValue', |
||
16 | 'ProductVariations' => 'ProductVariation' |
||
17 | ); |
||
18 | |||
19 | public function updateCMSFields(FieldList $fields) |
||
22 | |||
23 | public function onAfterWrite() |
||
28 | } |
||
29 |
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.