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