We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa37bdb commit eafe4d0Copy full SHA for eafe4d0
1 file changed
src/Document.php
@@ -30,7 +30,7 @@ public function toArray(): array
30
$array['body'] = $this->body->toArray();
31
}
32
33
- if ($this->id) {
+ if ($this->id instanceof \Spameri\Elastic\Entity\Property\ElasticId) {
34
$array['id'] = $this->id;
35
36
0 commit comments