Skip to content

Commit a72450c

Browse files
author
Ali
committed
Fix php Coding Standards pipeline
1 parent ce4943a commit a72450c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Doctrine/ODM/MongoDB/SchemaManager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,8 @@ private function isSearchIndexCommandException(CommandException $e): bool
10611061
if ($e->getCode() === self::CODE_COMMAND_NOT_SUPPORTED && str_contains($e->getMessage(), 'Search index')) {
10621062
return true;
10631063
}
1064+
1065+
// MongoDB 6.0.7+ and 7.0+: "$listSearchIndexes stage is only allowed on MongoDB Atlas"
10641066
if ($e->getMessage() === '$listSearchIndexes stage is only allowed on MongoDB Atlas') {
10651067
return true;
10661068
}

0 commit comments

Comments
 (0)