Skip to content

Commit 5e8e95e

Browse files
vtsykunnicolas-grekas
authored andcommitted
[DoctrineBridge] Fix use "attribute" driver by default
1 parent c510195 commit 5e8e95e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ protected function loadMappingInformation(array $objectManager, ContainerBuilder
9090
if (!$mappingConfig) {
9191
continue;
9292
}
93-
} else {
94-
$mappingConfig['type'] ??= 'attribute';
93+
} elseif (!$mappingConfig['type']) {
94+
$mappingConfig['type'] = 'attribute';
9595
}
9696

9797
$this->assertValidMappingConfiguration($mappingConfig, $objectManager['name']);

0 commit comments

Comments
 (0)