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:
Ingo Schommer 2012-07-16 21:55:05 +02:00
parent e28fb439a6
commit 5bf381c87b
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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.