Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit 53317ab

Browse files
Merge pull request #7 from manavo/fix-collection-name-searchableas
We should use searchableAs for the collection/index name
2 parents 1db5580 + 6504222 commit 53317ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Typesense.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private function getOrCreateCollectionFromModel($model): Collection
6161
$model->getCollectionSchema()
6262
);
6363

64-
return $this->client->getCollections()->{$model->getTable()};
64+
return $this->client->getCollections()->{$model->searchableAs()};
6565
}
6666
}
6767

0 commit comments

Comments
 (0)