From a6e63d267652ad62a4ad6f11abb37dc98a5f148f Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 23 Jan 2011 16:12:26 +0100 Subject: [PATCH] DDC-969 - Use of field instead of column when accessing a table leads to error when both differ. --- lib/Doctrine/ORM/Tools/SchemaTool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;