diff --git a/code/DMSDocument.php b/code/DMSDocument.php index 8e6ceba..bbc8046 100644 --- a/code/DMSDocument.php +++ b/code/DMSDocument.php @@ -2,8 +2,10 @@ class DMSDocument extends DataObject implements DMSDocumentInterface { static $db = array( - "Filename" => "Text", - "Folder" => "Text" + "Filename" => "Varchar(255)", + "Folder" => "Varchar(255)", + "Title" => 'Varchar(1024)', + "Description" => 'Text', ); static $many_many = array( @@ -46,6 +48,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface { $this->Pages()->removeAll(); } + /** * Adds a metadata tag to the Document. The tag has a category and a value. * Each category can have multiple values by default. So: addTag("fruit","banana") addTag("fruit", "apple") will add two items. diff --git a/code/ea-specific/DocumentType.php b/code/ea-specific/DocumentType.php index e69de29..cc8fa36 100644 --- a/code/ea-specific/DocumentType.php +++ b/code/ea-specific/DocumentType.php @@ -0,0 +1,11 @@ + 'Varchar(255)' + ); + + static $has_many = array( + 'Documents' => 'EADocument' + ); +}