Skip to content

Commit 9721236

Browse files
committed
default implementation
1 parent b29f3cc commit 9721236

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Model/ElasticsearchableTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ final public function getElasticsearchId(): string
1818
{
1919
return $this::class.'|'.$this->id;
2020
}
21+
public function toElasticsearch(IndexInterface $indexConfig): array{
22+
return $this->toArray();
23+
}
2124

2225
public function toElasticaDocument(IndexInterface $indexConfig): Document
2326
{

0 commit comments

Comments
 (0)