Index: Doctrine/Template/SoftDelete.php =================================================================== --- Doctrine/Template/SoftDelete.php +++ Doctrine/Template/SoftDelete.php @@ -81,7 +81,13 @@ $conn = $this->_table->getConnection(); } $this->_listener->hardDelete(true); + try { - $result = $this->_invoker->delete(); + $result = $this->_invoker->delete(); + } + catch (Exception $e) { + $this->_listener->hardDelete(false); + throw $e; + } $this->_listener->hardDelete(false); return $result; }