Commit 7e2669d1 authored by zYne's avatar zYne

fixes #624

parent 69985832
...@@ -544,7 +544,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun ...@@ -544,7 +544,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
foreach ($fields as $fieldName => $value) { foreach ($fields as $fieldName => $value) {
if ($value instanceof Doctrine_Expression) { if ($value instanceof Doctrine_Expression) {
$set[] = $table->getColumnName($fieldName) . ' = ' . $value->getSql(); $set[] = $table->getColumnName($fieldName) . ' = ' . $value->getSql();
unset($fields[$name]); unset($fields[$fieldName]);
} else { } else {
$set[] = $table->getColumnName($fieldName) . ' = ?'; $set[] = $table->getColumnName($fieldName) . ' = ?';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment