1 | <?php |
||
3 | class EcommerceAssignOrdersExtension extends DataExtension |
||
|
|||
4 | { |
||
5 | private static $has_one = array( |
||
6 | 'AssignedAdmin' => 'Member' |
||
7 | ); |
||
8 | |||
9 | private static $casting = array( |
||
10 | 'AssignedAdminNice' => 'Varchar' |
||
11 | ); |
||
12 | |||
13 | private static $summary_fields = array( |
||
14 | 'AssignedAdminNice' => 'Admin' |
||
15 | ); |
||
16 | |||
17 | private static $searchable_fields = array( |
||
18 | "AssignedAdminID" => array( |
||
19 | 'field' => 'TextField', |
||
20 | 'filter' => 'ExactMatchFilter', |
||
21 | 'title' => 'Assigned Admin' |
||
22 | ) |
||
23 | ); |
||
24 | |||
25 | private static $notify_by_email = true; |
||
26 | |||
27 | public function getAssignedAdminNice() |
||
38 | |||
39 | /** |
||
40 | * Update Fields |
||
41 | * @return FieldList |
||
42 | */ |
||
43 | public function updateCMSFields(FieldList $fields) |
||
51 | |||
52 | public function scaffoldSearchFields($fieldList, $_params) |
||
56 | |||
57 | protected function getAssignedAdminDropdown() |
||
68 | |||
69 | public function onAfterWrite() |
||
89 | } |
||
90 |
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.