protected function runDoctrineCommand(SymfonyCommand $command, array $opt = [], array $validOpts = [], array $arg = [])
    {
        $helperSet = $this->getEntityManagerHelperSet();
        $command->setHelperSet($helperSet);

        $command = $this->taskSymfonyCommand($command);

        foreach ($opt as $key => $value) {
            if (!in_array($key, $validOpts)) {
                continue;
            }

            $command->opt($key, $value);
        }

        foreach ($arg as $key => $value) {
            $command->arg($key, $value);
        }

        $command->run();
    }