From a1cd5337caab48aa046568b6d13b08b6652aca46 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 9 Feb 2024 10:44:55 +1300 Subject: [PATCH] ENH Update DataObject::delete() docblock --- src/ORM/DataObject.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ORM/DataObject.php b/src/ORM/DataObject.php index f380f158bb3..22bb45592d4 100644 --- a/src/ORM/DataObject.php +++ b/src/ORM/DataObject.php @@ -1724,7 +1724,8 @@ private function skipWriteComponents($recursive, DataObject $target, array &$ski /** * Delete this data object. * $this->onBeforeDelete() gets called. - * Note that in Versioned objects, both Stage and Live will be deleted. + * Note that in Versioned objects only the record from the draft table will be deleted + * If you also wish to delete the record from the live table then use Versioned::doArchive() instead * @uses DataExtension::augmentSQL() */ public function delete()