diff --git a/Command/LoadFixturesCommand.php b/Command/LoadFixturesCommand.php index 5f16862..4b9926b 100644 --- a/Command/LoadFixturesCommand.php +++ b/Command/LoadFixturesCommand.php @@ -11,7 +11,7 @@ use Symfony\Component\Finder\Finder; use Symfony\Component\HttpKernel\Util\Filesystem; /** - * LoadFixturesCommand : loads XML fixtures files. + * LoadFixturesCommand * * @author William DURAND */ @@ -21,12 +21,10 @@ class LoadFixturesCommand extends PhingCommand * Default fixtures directory. */ private $defaultFixturesDir = 'propel/fixtures'; - /** * Absolute path for fixtures directory */ private $absoluteFixturesPath = ''; - /** * Filesystem for manipulating files */ @@ -38,10 +36,10 @@ class LoadFixturesCommand extends PhingCommand protected function configure() { $this - ->setDescription('Load fixtures') + ->setDescription('Load XML fixtures') ->addOption('dir', 'd', InputOption::VALUE_OPTIONAL, 'The directory where XML or/and SQL fixtures files are located', $this->defaultFixturesDir) - ->addOption('xml', '', InputOption::VALUE_NONE, 'Load xml fixtures') - ->addOption('sql', '', InputOption::VALUE_NONE, 'Load sql fixtures') + ->addOption('xml', '', InputOption::VALUE_NONE, 'Load XML fixtures') + ->addOption('sql', '', InputOption::VALUE_NONE, 'Load SQL fixtures') ->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'Set this parameter to define a connection to use') ->setHelp(<<propel:load-fixtures loads XML and/or SQL fixtures. @@ -56,8 +54,8 @@ The --dir parameter allows you to change the directory that contain The --xml parameter allows you to load only XML fixtures. The --sql parameter allows you to load only SQL fixtures. -You can mix --xml parameter and --sql parameter to load XML and SQL fixtures. -If none of this parameter are set all files, XML and SQL, in the directory will be load. +You can mix --xml and --sql parameters to load both XML and SQL fixtures. +If none of this parameter is set, all XML and SQL files in the directory will be load. XML fixtures files are the same XML files you can get with the command propel:data-dump: