Skip to content

Commit

Permalink
chore: doctrine deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Mar 20, 2024
1 parent 3689ae5 commit 44b2c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Test/DoctrineMongoDbOdmTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function createTestDocumentManager($paths = []): DocumentManager
$config->setHydratorDir(sys_get_temp_dir());
$config->setProxyNamespace('SymfonyTests\Doctrine');
$config->setHydratorNamespace('SymfonyTests\Doctrine');
$config->setMetadataDriverImpl(new AttributeDriver($paths, new AttributeReader()));
$config->setMetadataDriverImpl(new AttributeDriver($paths, new AttributeReader())); // @phpstan-ignore-line type is only documented as phpdoc

Check warning on line 37 in src/Test/DoctrineMongoDbOdmTestCase.php

View check run for this annotation

Codecov / codecov/patch

src/Test/DoctrineMongoDbOdmTestCase.php#L37

Added line #L37 was not covered by tests
$config->setMetadataCache(new ArrayAdapter());

return DocumentManager::create(null, $config);
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/app/config/config_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ doctrine:
symfony_uuid: Symfony\Bridge\Doctrine\Types\UuidType

orm:
controller_resolver:
auto_mapping: false
auto_generate_proxy_classes: '%kernel.debug%'
mappings:
TestBundle:
Expand Down

0 comments on commit 44b2c98

Please sign in to comment.