From 7fc767794e6663af42133fc59f70a0cf9ec4ebfc Mon Sep 17 00:00:00 2001 From: jackbravo Date: Fri, 24 Aug 2007 22:00:05 +0000 Subject: [PATCH] Amend: this was not yet to be commited --- lib/Doctrine/Connection.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Doctrine/Connection.php b/lib/Doctrine/Connection.php index 9b7c29705..a5e5042b2 100644 --- a/lib/Doctrine/Connection.php +++ b/lib/Doctrine/Connection.php @@ -469,10 +469,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun return false; } // column names are specified as array keys - $cols = array(); - foreach ($values as $key => $value) { - $cols[] = $this->quoteIdentifier($key); - } + $cols = array_keys($values); // build the statement $query = 'INSERT INTO ' . $this->quoteIdentifier($table)