laravel-doctrine/migrations

RefreshCommand uses non existing option for ResetCommand

SPie opened this issue · 1 comments

SPie commented

The RefreshCommand doesn't work for me anymore with the new 3.0.0 version.
I get the error Symfony\Component\Console\Exception\InvalidOptionException: The "--em" option does not exist.
The RefreshCommand now uses an option called --em for the ResetCommand

$resetReturn = $this->call('doctrine:migrations:reset', [
'--em' => $this->option('em')
]);

but the ResetCommand doesn't use the option em, but connection.

protected $signature = 'doctrine:migrations:reset
{--connection= : For a specific connection.}';

I could open a MR to handle the error.

And also, if it is ok to tackle that in the same MR, I would like to add the --no-interaction option, because right now the RefreshCommand won't work in tests anymore.

eigan commented

Thanks for the report @SPie! Was a simple fix so I just commited and released a new version now.