Skip to content

Commit

Permalink
Update DMSDocument.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysideup authored Aug 20, 2019
1 parent fbe3331 commit 8d5b16f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Model/DMSDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
*/
class DMSDocument extends File implements DMSDocumentInterface
{


private static $singular_name = 'Document';

private static $plural_name = 'Documents';
Expand Down Expand Up @@ -130,6 +132,10 @@ class DMSDocument extends File implements DMSDocumentInterface
'getRelatedPages.count' => 'Page Use',
];

private static $casting = [
'IdAndTitle' => 'Varchar'
];

private static $do_not_copy = [
'ID',
'ClassName',
Expand Down Expand Up @@ -466,6 +472,10 @@ public function getExtension()
}


public function getIdAndTitle() : string
{
return $this->ID . ' - ' . $this->Title;
}

/**
* @return FieldList
Expand Down

0 comments on commit 8d5b16f

Please sign in to comment.