1
0
mirror of synced 2025-01-18 06:21:40 +03:00
This commit is contained in:
zYne 2007-11-28 23:06:04 +00:00
parent 69985832a7
commit 7e2669d1bd

View File

@ -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) . ' = ?';
} }