Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

Commit 7ee4775

Browse files
committed
Merge branch 'master' of github.com:algolia/algoliasearch-laravel
2 parents 1f1351f + f87ab97 commit 7ee4775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EloquentSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function deleted($model)
3535

3636
/** @var \AlgoliaSearch\Index $index */
3737
foreach ($this->modelHelper->getIndices($model) as $index) {
38-
$index->deleteObject($model->id);
38+
$index->deleteObject($this->modelHelper->getObjectId($model));
3939
}
4040

4141
return true;

0 commit comments

Comments
 (0)