Skip to content

Commit 59ee6f2

Browse files
GromNaNsoyuka
andauthored
Add support for MongoDB ODM Bundle v5 with Symfony 7.0 full compatibility (#6090)
* chore: mongodb 5.x for symfony 7 * phpstan false positive --------- Co-authored-by: soyuka <[email protected]>
1 parent 467ad60 commit 59ee6f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"doctrine/dbal": "^3.4.0",
3636
"doctrine/doctrine-bundle": "^1.12 || ^2.0",
3737
"doctrine/mongodb-odm": "^2.2",
38+
"doctrine/mongodb-odm-bundle": "^4.0 || ^5.0",
3839
"doctrine/orm": "^2.14",
3940
"elasticsearch/elasticsearch": "^7.11.0",
4041
"friends-of-behat/mink-browserkit-driver": "^1.3.1",

src/Test/DoctrineMongoDbOdmFilterTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function setUp(): void
4141
self::bootKernel();
4242

4343
$this->manager = DoctrineMongoDbOdmTestCase::createTestDocumentManager();
44-
$this->managerRegistry = self::$kernel->getContainer()->get('doctrine_mongodb'); // @phpstan-ignore-line
44+
$this->managerRegistry = self::$kernel->getContainer()->get('doctrine_mongodb');
4545
$this->repository = $this->manager->getRepository($this->resourceClass);
4646
}
4747

0 commit comments

Comments
 (0)