From a4f88407c2f518b327e4b0e9a0d0b76b0e771cdc Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Wed, 22 Dec 2010 22:04:11 +0100 Subject: [PATCH] DDC-931 - SchemaTool#dropSchema() should not stop on failure of a single query (as stated in docblocks). --- lib/Doctrine/ORM/Tools/SchemaTool.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/SchemaTool.php b/lib/Doctrine/ORM/Tools/SchemaTool.php index 33572ba9b..e87a99a98 100644 --- a/lib/Doctrine/ORM/Tools/SchemaTool.php +++ b/lib/Doctrine/ORM/Tools/SchemaTool.php @@ -498,7 +498,11 @@ class SchemaTool $conn = $this->_em->getConnection(); foreach ($dropSchemaSql as $sql) { - $conn->executeQuery($sql); + try { + $conn->executeQuery($sql); + } catch(\Exception $e) { + + } } }