Permalink
Browse files

Small optimization in DboSource

  • Loading branch information...
1 parent 926ac32 commit b983aa91925a7d393d4112eb8ed03f0355fd1d91 @lorenzo lorenzo committed Nov 4, 2011
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/Cake/Model/Datasource/DboSource.php
@@ -951,8 +951,6 @@ public function create(Model $model, $fields = null, $values = null) {
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];

0 comments on commit b983aa9

Please sign in to comment.