Skip to content

Commit

Permalink
Update DocumentRepositoryAutoconfigureCompilerPass.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyvastis authored Nov 3, 2021
1 parent a7571b2 commit 3d6e054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocumentRepositoryAutoconfigureCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function process(ContainerBuilder $container)

private function getFullyQualifiedDocumentClassNames(ContainerBuilder $container): array
{
$doctrineConfig = array_merge(...$container->getExtensionConfig('doctrine_mongodb'));
$doctrineConfig = array_merge_recursive(...$container->getExtensionConfig('doctrine_mongodb'));
$documentDirs = array_map(function (array $mappingConfig) use ($container) {
return $container->getParameterBag()->resolveValue($mappingConfig['dir']);
}, $doctrineConfig['document_managers']['default']['mappings']);
Expand Down

0 comments on commit 3d6e054

Please sign in to comment.