浏览代码

[DoctrineMongoDBBundle] added a check that fixture dir exists

Bulat Shakirzyanov 14 年之前
父节点
当前提交
558268331b

+ 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);