1 | <?php |
||
3 | class DMSDocumentCartSubmissionItem extends DataObject |
||
|
|||
4 | { |
||
5 | private static $db = array( |
||
6 | 'Quantity' => 'Int', |
||
7 | ); |
||
8 | |||
9 | private static $has_one = array( |
||
10 | 'Document' => 'DMSDocument', |
||
11 | 'DMSDocumentCartSubmission' => 'DMSDocumentCartSubmission', |
||
12 | ); |
||
13 | |||
14 | private static $summary_fields = array( |
||
15 | 'Document.getTitle' => 'Document', |
||
16 | 'Quantity' => 'Quantity' |
||
17 | ); |
||
18 | |||
19 | private static $singular_name = 'Submission Item'; |
||
20 | private static $plural_name = 'Submission Items'; |
||
21 | |||
22 | public function getCMSFields() |
||
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.