Browse Source

Small optimization in DboSource

Jose Lorenzo Rodriguez 14 years ago
parent
commit
b983aa9192
1 changed files with 0 additions and 2 deletions
  1. 0 2
      lib/Cake/Model/Datasource/DboSource.php

+ 0 - 2
lib/Cake/Model/Datasource/DboSource.php

@@ -951,8 +951,6 @@ class DboSource extends DataSource {
 
 		for ($i = 0; $i < $count; $i++) {
 			$valueInsert[] = $this->value($values[$i], $model->getColumnType($fields[$i]));
-		}
-		for ($i = 0; $i < $count; $i++) {
 			$fieldInsert[] = $this->name($fields[$i]);
 			if ($fields[$i] == $model->primaryKey) {
 				$id = $values[$i];