diff --git a/lib/Doctrine/ORM/Tools/SchemaTool.php b/lib/Doctrine/ORM/Tools/SchemaTool.php index 726793d8d..1edbd38a1 100644 --- a/lib/Doctrine/ORM/Tools/SchemaTool.php +++ b/lib/Doctrine/ORM/Tools/SchemaTool.php @@ -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;