From f8a0eb2e259074c842664fe9b313faea7f930517 Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 28 Nov 2007 22:13:12 +0000 Subject: [PATCH] fixes #624 --- lib/Doctrine/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Connection.php b/lib/Doctrine/Connection.php index 842071ab1..fc1f5a11b 100644 --- a/lib/Doctrine/Connection.php +++ b/lib/Doctrine/Connection.php @@ -544,7 +544,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun foreach ($fields as $fieldName => $value) { if ($value instanceof Doctrine_Expression) { $set[] = $table->getColumnName($fieldName) . ' = ' . $value->getSql(); - unset($values[$name]); + unset($fields[$name]); } else { $set[] = $table->getColumnName($fieldName) . ' = ?'; }