From 7e9d014eeeedb2a13966aeb750b10293a6b06238 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 27 Jan 2009 10:44:40 +0000 Subject: [PATCH] --- code/MultiFormSession.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/MultiFormSession.php b/code/MultiFormSession.php index 9adafcd..fd035ca 100644 --- a/code/MultiFormSession.php +++ b/code/MultiFormSession.php @@ -55,7 +55,8 @@ class MultiFormSession extends DataObject { // delete dependent form steps and relation $steps = $this->FormSteps(); if($steps) foreach($steps as $step) { - $steps->remove($step); // @TODO not sure if this is required (does delete() remove the relation too?) + $steps->remove($step); // @TODO not sure if this is required (does delete() remove the relation too?) + $step->destroy(); $step->delete(); }