Import storage routine is creating the first transaction journals.

Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
James Cole
2016-08-11 08:00:02 +02:00
parent 200366f5be
commit efe9933721
6 changed files with 181 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ namespace FireflyIII\Console\Commands;
use FireflyIII\Crud\Account\AccountCrud;
use FireflyIII\Import\Importer\ImporterInterface;
use FireflyIII\Import\ImportStorage;
use FireflyIII\Import\ImportValidator;
use FireflyIII\Import\Logging\CommandHandler;
use FireflyIII\Models\ImportJob;
@@ -92,7 +93,14 @@ class Import extends Command
$validator->setDefaultImportAccount($repository->find($job->configuration['import-account']));
}
$validator->clean();
$cleaned = $validator->clean();
// then import collection:
$storage = new ImportStorage($collection);
$storage->setUser($job->user);
// and run store routine:
$storage->store();
$this->line('Something something import: ' . $jobKey);