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

Commit 6504222

Browse files
committed
We should use searchableAs for the collection/index name
1 parent a504352 commit 6504222

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)