1 | <?php |
||
3 | class ContactUsPageDataExtension extends Extension |
||
|
|||
4 | { |
||
5 | |||
6 | private static $has_many = [ |
||
7 | 'ContactUsFormEntries' => 'ContactUsFormEntry' |
||
8 | ]; |
||
9 | |||
10 | private static $field_labels = [ |
||
11 | 'ContactUsFormEntries' => 'Contact Us Form Entries' |
||
12 | ]; |
||
13 | |||
14 | |||
15 | /** |
||
16 | * Update Fields |
||
17 | * @return FieldList |
||
18 | */ |
||
19 | public function updateCMSFields(FieldList $fields) |
||
38 | } |
||
39 |
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.