1
0
mirror of synced 2024-12-13 22:56:04 +03:00

DDC-969 - Use of field instead of column when accessing a table leads to error when both differ.

This commit is contained in:
Benjamin Eberlei 2011-01-23 16:12:26 +01:00
parent c5593be7c9
commit a6e63d2676

View File

@ -179,7 +179,7 @@ class SchemaTool
$this->_gatherColumn($class, $idMapping, $table);
$columnName = $class->getQuotedColumnName($class->identifier[0], $this->_platform);
// TODO: This seems rather hackish, can we optimize it?
$table->getColumn($class->identifier[0])->setAutoincrement(false);
$table->getColumn($columnName)->setAutoincrement(false);
$pkColumns[] = $columnName;