[Command] Fixed path in fixtures:dump command

This commit is contained in:
William DURAND 2011-09-07 10:52:22 +02:00
commit 0551d6400e

View file

@ -15,7 +15,7 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Propel\PropelBundle\DataFixtures\Dumper\YamlDumpFixtureser;
use Propel\PropelBundle\DataFixtures\Dumper\YamlDataDumper;
/**
* FixturesDumpCommand.
@ -62,7 +62,7 @@ EOT
list($name, $defaultConfig) = $this->getConnection($input, $output);
$path = realpath($this->getApplication()->getKernel()->getRootDir() . '/../' . $this->defaultFixturesDir);
$path = realpath($this->getApplication()->getKernel()->getRootDir() . '/../') . '/' . $this->defaultFixturesDir;
$filename = $path . '/fixtures_' . time() . '.yml';
$dumper = new YamlDataDumper($this->getApplication()->getKernel()->getRootDir());