瀏覽代碼

[DoctrineMongoDBBundle] fixed merge problem

Fabien Potencier 14 年之前
父節點
當前提交
1893e4e250

+ 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();
         $loader = new \Doctrine\Common\DataFixtures\Loader();
         foreach ($paths as $path) {
         foreach ($paths as $path) {
             $loader->loadFromDirectory($path);
             $loader->loadFromDirectory($path);