|
@@ -89,7 +89,7 @@ |
|
|
block discarded – undo |
|
89
|
89
|
// btw, multi insert are not necessarily that faster in real world |
|
90
|
90
|
// situation where there is a lot of updates and you need ot keep |
|
91
|
91
|
// atomicity using transactions |
|
92
|
|
- DB::transaction(function () use ($loadQuery, $whereClause, $record) { |
|
|
92
|
+ DB::transaction(function() use ($loadQuery, $whereClause, $record) { |
|
93
|
93
|
if ($loadQuery->where($whereClause)->sharedLock()->exists()) { |
|
94
|
94
|
$update = \array_diff_key($record, $whereClause); |
|
95
|
95
|
$loadQuery->update($update); |
Please login to merge, or discard this patch.