فهرست منبع

[DoctrineMongoDBBundle] added a check that fixture dir exists

Bulat Shakirzyanov 14 سال پیش
والد
کامیت
558268331b
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php

+ 2 - 0
src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php

@@ -72,6 +72,8 @@ EOT
             }
         }
 
+        $paths = array_filter($paths, 'is_dir');
+
         $loader = new \Doctrine\Common\DataFixtures\Loader();
         foreach ($paths as $path) {
             $loader->loadFromDirectory($path);