Skip to content

Commit 878de21

Browse files
committed
Fix
1 parent b998278 commit 878de21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/BuilderTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ public function update(array $values)
8484
$affectedRecords = $this->getAffectedRecords();
8585

8686
// update main table records
87-
/*if (! $this->query->increment($this->model->getLatestVersionColumn(), 1, $values)) {
87+
if (! $this->query->increment($this->model->getLatestVersionColumn(), 1, $values)) {
8888
return false;
89-
}*/
89+
}
9090

9191
// update all versions in case primary key value has been changed
9292
$db = $this->model->getConnection();
@@ -97,7 +97,7 @@ public function update(array $values)
9797
return false;
9898
}
9999
}
100-
dd($affectedRecords);
100+
101101
// update version table records
102102
foreach ($affectedRecords as $record) {
103103
// get versioned values from record

0 commit comments

Comments
 (0)