1
0
mirror of synced 2025-01-18 14:31:40 +03:00

Fix for foreign keys and autoincrement

This commit is contained in:
Juozas Kaziukenas 2010-11-17 14:07:05 -08:00
parent 831b40e093
commit ec50125568

View File

@ -185,6 +185,7 @@ class SchemaTool
$idMapping = $class->fieldMappings[$class->identifier[0]]; $idMapping = $class->fieldMappings[$class->identifier[0]];
$this->_gatherColumn($class, $idMapping, $table); $this->_gatherColumn($class, $idMapping, $table);
$columnName = $class->getQuotedColumnName($class->identifier[0], $this->_platform); $columnName = $class->getQuotedColumnName($class->identifier[0], $this->_platform);
$table->getColumn($class->identifier[0])->setAutoincrement(false);
$pkColumns[] = $columnName; $pkColumns[] = $columnName;
// TODO: REMOVE // TODO: REMOVE