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