From 423b302430fa6eb707d4d492b6d943fa6174fc3b Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 17 Nov 2010 18:44:51 -0200 Subject: Adding database option to isis:import task --- lib/task/isisImportTask.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/task') diff --git a/lib/task/isisImportTask.class.php b/lib/task/isisImportTask.class.php index 660c106..124932c 100644 --- a/lib/task/isisImportTask.class.php +++ b/lib/task/isisImportTask.class.php @@ -11,6 +11,7 @@ class isisImportTask extends mySfTask new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'), new sfCommandOption('loglevel', 'l', sfCommandOption::PARAMETER_REQUIRED, 'Log level', 'info'), + new sfCommandOption('database', 'd', sfCommandOption::PARAMETER_REQUIRED, 'Database', null), )); $this->namespace = 'isis'; @@ -42,6 +43,6 @@ EOF; } // Mass ISIS import. - $isis->massImport($this, 'task', $arguments['rows'], $arguments['offset']); + $isis->massImport($this, 'task', $arguments['rows'], $arguments['offset'], $options['database']); } } -- cgit v1.2.3