Skip to content

Commit 02d29dd

Browse files
Karim Miladisaimaz
authored andcommitted
Fix document_root config (defined as path) when creating an index (with mapping)
1 parent e9d7843 commit 02d29dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mapping/MetadataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function getBundleMapping($name, $config = [])
141141
foreach ($documents as $document) {
142142
$documentReflection = new \ReflectionClass(
143143
$bundleNamespace .
144-
'\\' . $documentDir .
144+
'\\' . str_replace('/', '\\', $documentDir) .
145145
'\\' . $document
146146
);
147147

0 commit comments

Comments
 (0)