*/ class SqlInsertCommand extends AbstractCommand { /** * {@inheritdoc} */ protected function configure() { $this ->setName('propel:sql:insert') ->setDescription('Insert SQL statements') ->addOption('connection', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Connection to use. Example: default, bookstore') ; } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $this->setupBuildTimeFiles(); $params = array( '--connection' => $this->getConnections($input->getOption('connection')), ); $command = new \Propel\Generator\Command\SqlInsertCommand(); return $this->runCommand($command, $params, $input, $output); } }