Fix for issue #66: fixtures dumper should ignore tests table maps

This commit is contained in:
Matt Cooley 2011-11-20 09:19:46 -06:00
parent 8baffd0aca
commit 2a7c9014d4

View file

@ -64,7 +64,7 @@ abstract class AbstractDataHandler
$this->dbMap = Propel::getDatabaseMap($connectionName);
$finder = new Finder();
$files = $finder->files()->name('*TableMap.php')->in($this->getRootDir() . '/../');
$files = $finder->files()->name('*TableMap.php')->in($this->getRootDir() . '/../')->exclude('Tests');
foreach ($files as $file) {
$class = $this->guessFullClassName($file->getRelativePath(), basename($file, '.php'));