Skip to content

Commit

Permalink
Merge pull request #295 from Phally/1.3-dbo-source-optimization
Browse files Browse the repository at this point in the history
1.3 dbo source optimization
  • Loading branch information
lorenzo committed Nov 4, 2011
2 parents f760b54 + 5ec11fb commit 6c92edb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cake/libs/model/datasources/dbo_source.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 6c92edb

Please sign in to comment.