addOptions(array( new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'is'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'), )); $this->namespace = 'lucene'; $this->name = 'xrefresh'; } protected function execute($arguments = array(), $options = array()) { $cards = Doctrine::getTable('Card')->findAll(); foreach($cards as $card) { $card->updateLuceneIndex(); $this->logSection('Card', $card->getId()); } } }