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)