protected function deleteOppAtto($opp_atto)
 {
     $opp_atto->delete();
     // commit changes
     $indexManager = sfSolr::getInstance();
     $indexManager->commit();
 }
 protected function deleteOppVotazione($opp_votazione)
 {
     $opp_votazione->delete();
     // commit changes
     $indexManager = sfSolr::getInstance();
     $indexManager->commit();
 }
 /**
  * Adds the new model
  */
 public function insertIndex($node)
 {
     if (sfConfig::get('sf_logging_enabled')) {
         sfLogger::getInstance()->info(sprintf('{sfSolr} saving model "%s" with PK = "%s"', get_class($node), $node->getPrimaryKey()));
     }
     // - retrieve istanza indexManager e inserimento documento relativo
     $indexManager = sfSolr::getInstance();
     $indexManager->addDocument($node);
 }
 /**
  * Returns an instance of sfSolr configured for this environment.
  */
 protected function getSolrInstance()
 {
     return sfSolr::getInstance();
 }