diff --git a/models/behaviors/soft_deletable.php b/models/behaviors/soft_deletable.php index 1a5c65f..5001fbf 100644 --- a/models/behaviors/soft_deletable.php +++ b/models/behaviors/soft_deletable.php @@ -82,23 +82,9 @@ public function softDelete($model, $id, $cascade = false) { return false; } - /* - $model->Behaviors->dispatchMethod($model, 'beforeSoftDeletable', (array) $id); - if (method_exists($model, 'beforeSoftDeletable') && $model->beforeSoftDeletable($id) === false) { - return false; - } - */ - $model->id = $id; $deleted = $model->save($data, false, array_keys($data[$model->alias])); - /* - $model->Behaviors->dispatchMethod($model, 'afterSoftDeletable', (array) $id); - if (method_exists($model, 'afterSoftDeletable')) { - $model->afterSoftDeletable($id); - } - */ - $this->_triggerCustomCallback($model, 'afterSoftDeletable', $id); if ($deleted && $cascade) {