namespace = 'search'; $this->name = 'reindex'; } protected function execute($arguments = array(), $options = array()) { $databaseManager = new sfDatabaseManager($this->configuration); $reindexClasses = array('Item', 'Author'); foreach($reindexClasses AS $class) { $recs = Doctrine::getTable($class)->findAll(); Doctrine::getTable($class)->setOption('ignore_audit', true); foreach($recs AS $rec) { $rec->save(); } } } }