mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 12:05:56 +00:00
Naming for DMSDocument
This commit is contained in:
parent
aa9e0f8bba
commit
900f1d144a
@ -32,6 +32,10 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
|
||||
'LastChanged'=>'LastChanged'
|
||||
);
|
||||
|
||||
static $singular_name = 'Document';
|
||||
|
||||
static $plural_name = 'Documents';
|
||||
|
||||
/**
|
||||
* Associates this document with a Page. This method does nothing if the association already exists.
|
||||
* This could be a simple wrapper around $myDoc->Pages()->add($myPage) to add a many_many relation
|
||||
|
Loading…
x
Reference in New Issue
Block a user