Permalink
Browse files

Merge pull request #295 from Phally/1.3-dbo-source-optimization

1.3 dbo source optimization
  • Loading branch information...
2 parents f760b54 + 5ec11fb commit 6c92edbe3e9b8ae5d82b645eb0f05623e9664bd3 @lorenzo lorenzo committed Nov 4, 2011
Showing with 0 additions and 2 deletions.
  1. +0 −2 cake/libs/model/datasources/dbo_source.php
View
@@ -736,8 +736,6 @@ function create(&$model, $fields = null, $values = null) {
for ($i = 0; $i < $count; $i++) {
$valueInsert[] = $this->value($values[$i], $model->getColumnType($fields[$i]), false);
- }
- for ($i = 0; $i < $count; $i++) {
$fieldInsert[] = $this->name($fields[$i]);
if ($fields[$i] == $model->primaryKey) {
$id = $values[$i];

0 comments on commit 6c92edb

Please sign in to comment.