Skip to content

Commit 1945371

Browse files
emulienfoucurquizadavid-simplyphpdependabot-preview[bot]arkste
authored
Removing document issue, send documentId instead of array (#21)
* Update CONTRIBUTING.md with issue on MacOs about Docker Environment setup (#16) * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Fix clear command, checking return status code (#13) * Fix clear command, checking return status code * Fixing import related to meilisearch-php ^0.12 Co-authored-by: david <[email protected]> * Updating Docker configuration, missing entrypoint to manage vendors (#15) Co-authored-by: david <[email protected]> * Update meilisearch/meilisearch-php requirement from ^0.12 to ^0.13 (#18) Update meilisearch/meilisearch-php requirement from ^0.12 to ^0.13 * Fix placeholder search (#19) * Update Engine.php * Fix linter * Update src/Engine.php Co-authored-by: Arkadius Stefanski <[email protected]> Co-authored-by: Arkadius Stefanski <[email protected]> * Update version for the next release (v0.2.2) (#20) * Removing document issue, send documentId instead of array * Fixing tests * Fixing tests * Revert "Fixing tests" This reverts commit 337724b Co-authored-by: Clémentine Urquizar <[email protected]> Co-authored-by: david <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Arkadius Stefanski <[email protected]>
1 parent 9a28063 commit 1945371

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Engine.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use MeiliSearch\Exceptions\HTTPRequestException;
77
use Symfony\Component\Serializer\Exception\ExceptionInterface;
88
use function count;
9+
use function reset;
910

1011
/**
1112
* Class Engine.
@@ -106,7 +107,7 @@ public function remove($searchableEntities): array
106107
foreach ($data as $indexName => $objects) {
107108
$result[$indexName] = $this->client
108109
->getIndex($indexName)
109-
->deleteDocument($objects);
110+
->deleteDocument(reset($objects));
110111
}
111112

112113
return $result;

0 commit comments

Comments
 (0)