mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Disabling DMSDocumentInterface->delete()
Causes PHP fatal errors when using in combination with DataObject (at least on our PHP 5.3.3 buildslave, not on Ingo's PHP 5.3.12 development machine)
This commit is contained in:
parent
e28fb439a6
commit
5bf381c87b
@ -5,10 +5,6 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
|
||||
"Filename" => "Text",
|
||||
);
|
||||
|
||||
function delete() {
|
||||
parent::delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 has_many relation
|
||||
|
@ -8,10 +8,13 @@ interface DMSDocumentInterface {
|
||||
|
||||
/**
|
||||
* Deletes the DMSDocument, its underlying file, as well as any tags related to this DMSDocument.
|
||||
*
|
||||
* @todo Can't be applied to classes which already implement the DataObjectInterface (naming conflict)
|
||||
*
|
||||
* @abstract
|
||||
* @return null
|
||||
*/
|
||||
function delete();
|
||||
// function delete();
|
||||
|
||||
/**
|
||||
* Associates this DMSDocument with a Page. This method does nothing if the association already exists.
|
||||
|
Loading…
Reference in New Issue
Block a user