From 3640ae60acdbac8c432ebce4af2cd1ad4f90176b Mon Sep 17 00:00:00 2001 From: William DURAND Date: Wed, 7 Sep 2011 10:33:20 +0200 Subject: [PATCH] [Command] Fixed the data-dump command --- Command/DataDumpCommand.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Command/DataDumpCommand.php b/Command/DataDumpCommand.php index 860da58..e985a2e 100644 --- a/Command/DataDumpCommand.php +++ b/Command/DataDumpCommand.php @@ -63,12 +63,12 @@ EOT list($name, $defaultConfig) = $this->getConnection($input, $output); $path = realpath($this->getApplication()->getKernel()->getRootDir() . '/../' . $this->defaultFixturesDir); - $filename = $path . '/fixtures_' . time(); + $filename = $path . '/fixtures_' . time() . '.yml'; $dumper = new YamlDataDumper($this->getApplication()->getKernel()->getRootDir()); try { - $file = $dumper->dump($filename, $name); + $dumper->dump($filename, $name); } catch (\Exception $e) { $this->writeSection($output, array( '[Propel] Exception', @@ -77,7 +77,8 @@ EOT return false; } - $output->writeln(sprintf('>> File+ %s', $file)); + $output->writeln(''); + $output->writeln(sprintf('>> File+ %s', $filename)); return true; }