DDC-969 - Use of field instead of column when accessing a table leads to error when both differ.
This commit is contained in:
parent
c5593be7c9
commit
a6e63d2676
@ -179,7 +179,7 @@ class SchemaTool
|
|||||||
$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);
|
||||||
// TODO: This seems rather hackish, can we optimize it?
|
// TODO: This seems rather hackish, can we optimize it?
|
||||||
$table->getColumn($class->identifier[0])->setAutoincrement(false);
|
$table->getColumn($columnName)->setAutoincrement(false);
|
||||||
|
|
||||||
$pkColumns[] = $columnName;
|
$pkColumns[] = $columnName;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user