* @package PHPCI * @subpackage Console */ class UpdateCommand extends Command { protected function configure() { $this ->setName('phpci:update') ->setDescription('Update the database to reflect modified models.'); } /** * Generates Model and Store classes by reading database meta data. */ protected function execute(InputInterface $input, OutputInterface $output) { // Update the database: $gen = new \b8\Database\Generator(\b8\Database::getConnection(), 'PHPCI', './PHPCI/Model/Base/'); $gen->generate(); } }