File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 16
16
use ApiPlatform \Tests \Fixtures \TestBundle \Document \User as UserDocument ;
17
17
use ApiPlatform \Tests \Fixtures \TestBundle \Entity \User ;
18
18
use ApiPlatform \Tests \Fixtures \TestBundle \TestBundle ;
19
+ use Doctrine \Bundle \DoctrineBundle \ConnectionFactory ;
19
20
use Doctrine \Bundle \DoctrineBundle \DoctrineBundle ;
20
21
use Doctrine \Bundle \MongoDBBundle \Command \TailCursorDoctrineODMCommand ;
21
22
use Doctrine \Bundle \MongoDBBundle \DoctrineMongoDBBundle ;
@@ -217,6 +218,15 @@ class_exists(NativePasswordHasher::class) ? 'password_hashers' : 'encoders' => [
217
218
],
218
219
]);
219
220
221
+ // TODO: remove this check and move this config in config_common.yml when dropping support for DoctrineBundle <2.10
222
+ if (defined (ConnectionFactory::class.'::DEFAULT_SCHEME_MAP ' )) {
223
+ $ c ->prependExtensionConfig ('doctrine ' , [
224
+ 'orm ' => [
225
+ 'report_fields_where_declared ' => true ,
226
+ ],
227
+ ]);
228
+ }
229
+
220
230
$ loader ->load (__DIR__ .'/config/config_swagger.php ' );
221
231
222
232
if ('mongodb ' === $ this ->environment ) {
You can’t perform that action at this time.
0 commit comments