We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6af8698 commit 8777708Copy full SHA for 8777708
lib/Doctrine/ODM/MongoDB/SchemaManager.php
@@ -465,7 +465,7 @@ public function deleteDocumentSearchIndexes(string $documentName): void
465
$collection = $this->dm->getDocumentCollection($class->name);
466
467
try {
468
- $searchIndexes = $collection->listSearchIndexes();
+ $searchIndexes = $collection->listSearchIndexes(['typeMap' => ['root' => 'bson']]);
469
} catch (CommandException $e) {
470
// If the server does not support search indexes, there are no indexes to remove in any case
471
if ($this->isSearchIndexCommandException($e)) {
0 commit comments