| 1 | <?php |
||
| 3 | class EcommerceSecurityOrderDecoration extends DataExtension |
||
|
|
|||
| 4 | { |
||
| 5 | private static $db = array( |
||
| 6 | 'SkipToSecurityChecks' => 'Boolean' |
||
| 7 | ); |
||
| 8 | |||
| 9 | public function updateCMSFields(FieldList $fields) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Event handler called before writing to the database. |
||
| 37 | */ |
||
| 38 | public function onBeforeWrite() |
||
| 51 | } |
||
| 52 |
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.