From 1daf658ec68ce6762c9bcf0b8a0af59111f3230a Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Wed, 8 Dec 2010 23:36:15 +0100 Subject: [PATCH] DDC-917 - Skip Mapped Superclasses in the Drop Sequence Loop in SchemaTool. --- lib/Doctrine/ORM/Tools/SchemaTool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/SchemaTool.php b/lib/Doctrine/ORM/Tools/SchemaTool.php index 82b3a1dbf..33572ba9b 100644 --- a/lib/Doctrine/ORM/Tools/SchemaTool.php +++ b/lib/Doctrine/ORM/Tools/SchemaTool.php @@ -546,7 +546,7 @@ class SchemaTool $orderedTables = array(); foreach ($classes AS $class) { - if ($class->isIdGeneratorSequence() && $class->name == $class->rootEntityName && $this->_platform->supportsSequences()) { + if ($class->isIdGeneratorSequence() && !$class->isMappedSuperclass && $class->name == $class->rootEntityName && $this->_platform->supportsSequences()) { $sql[] = $this->_platform->getDropSequenceSQL($class->sequenceGeneratorDefinition['sequenceName']); } }