فهرست منبع

[DoctrineBundle] Fixing issue with paths not being the realpath and causing issues when comparing string paths in Doctrine

Jonathan H. Wage 15 سال پیش
والد
کامیت
08617caf56
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/Symfony/Framework/DoctrineBundle/Bundle.php

+ 2 - 2
src/Symfony/Framework/DoctrineBundle/Bundle.php

@@ -43,11 +43,11 @@ class Bundle extends BaseBundle
       {
         if (is_dir($dir = $bundleDirs[$namespace].'/'.$class.'/Resources/config/doctrine/metadata'))
         {
-          $metadataDirs[] = $dir;
+          $metadataDirs[] = realpath($dir);
         }
         if (is_dir($dir = $bundleDirs[$namespace].'/'.$class.'/Entities'))
         {
-          $entityDirs[] = $dir;
+          $entityDirs[] = realpath($dir);
         }
       }
     }