1
0
mirror of synced 2025-03-04 20:03:21 +03:00

DDC-917 - Skip Mapped Superclasses in the Drop Sequence Loop in SchemaTool.

This commit is contained in:
Benjamin Eberlei 2010-12-08 23:36:15 +01:00
parent aa2501eb96
commit 1daf658ec6

View File

@ -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']);
}
}