From cbff88920580f72baad7d627be9e6882dc298bef Mon Sep 17 00:00:00 2001 From: "Zhenzhu.fu" Date: Tue, 30 Dec 2014 14:19:29 +0800 Subject: [PATCH] fixed bug : customize the document_dir Error --- Mapping/MetadataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mapping/MetadataCollector.php b/Mapping/MetadataCollector.php index ed9c5137..829ef928 100644 --- a/Mapping/MetadataCollector.php +++ b/Mapping/MetadataCollector.php @@ -171,7 +171,7 @@ public function getBundleMapping($bundle) foreach ($documents as $document) { $documentReflection = new \ReflectionClass( $bundleReflection->getNamespaceName() . - '\\' . $this->getDocumentDir() . + '\\' . str_replace('/', '\\', $this->getDocumentDir()) . '\\' . pathinfo($document, PATHINFO_FILENAME) );