소스 검색

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