Skip to content

Commit

Permalink
Merge pull request #29 from ba77osai/master
Browse files Browse the repository at this point in the history
Passing an array of keys, not a collection to the model
  • Loading branch information
nticaric authored Sep 21, 2016
2 parents 634f694 + d23a23f commit 6d27835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engines/TNTSearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function map($results, $model)
return Collection::make();
}

$keys = collect($results['ids']);
$keys = collect($results['ids'])->values()->all();
$models = $model->whereIn(
$model->getKeyName(), $keys
)->get()->keyBy($model->getKeyName());
Expand Down

0 comments on commit 6d27835

Please sign in to comment.