Skip to content

Commit

Permalink
🐛 Fix to prevent model key names from generating false positives.
Browse files Browse the repository at this point in the history
  • Loading branch information
olsgreen committed Feb 24, 2018
1 parent 01efa6f commit 3cc268a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DatabaseEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function update($models)
{
$models
->map(function ($model) {
$array = $model->toSearchableArray();
$array = array_values($model->toSearchableArray());

if (empty($array)) {
return;
Expand Down

0 comments on commit 3cc268a

Please sign in to comment.