Skip to content

Commit

Permalink
Update FullTextIndexer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanomatteo authored Aug 3, 2022
1 parent 2ebed9a commit c33fd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FullTextIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FullTextIndexer

private function getModelType(Model $model)
{
return method_exists($model, 'getModelType') ? $model->getModelType() : get_class($model);
return method_exists($model, 'getModelTypeForSearch') ? $model->getModelType() : get_class($model);
}

public function addModelToIndex(Model $model): void
Expand Down

0 comments on commit c33fd3d

Please sign in to comment.