|
@@ -98,7 +98,7 @@ |
|
|
block discarded – undo |
|
98
|
98
|
// btw, multi insert are not necessarily that faster in real world |
|
99
|
99
|
// situation where there is a lot of updates and you need ot keep |
|
100
|
100
|
// atomicity using transactions |
|
101
|
|
- DB::transaction(function () use ($loadQuery, $whereClause, $param) { |
|
|
101
|
+ DB::transaction(function() use ($loadQuery, $whereClause, $param) { |
|
102
|
102
|
if (!empty($whereClause) && $loadQuery->where($whereClause)->sharedLock()->exists()) { |
|
103
|
103
|
$update = \array_diff_key($param, $whereClause); |
|
104
|
104
|
$loadQuery->update($update); |
Please login to merge, or discard this patch.