diff --git a/class.tx_oelib_Model.php b/class.tx_oelib_Model.php
index <HASH>..<HASH> 100644
--- a/class.tx_oelib_Model.php
+++ b/class.tx_oelib_Model.php
@@ -450,6 +450,18 @@ abstract class tx_oelib_Model extends tx_oelib_Object {
 	}
 
 	/**
+	 * Sets the "deleted" property for the current model.
+	 */
+	protected function setToDeleted() {
+		if ($this->isLoaded()) {
+			$this->data['deleted'] = true;
+			$this->markAsDirty();
+		} else {
+			$this->markAsDead();
+		}
+	}
+
+	/**
 	 * Checks whether this model is read-only.
 	 *
 	 * @return boolean true if this model is read-only, false if it is writable
re-adding a function that was accidentially deleted by the last checkin.

git-svn-id: <URL>