/**
  * generates a group news, unless the sf_news_cache already has it
  *
  * @return void
  * @author Guglielmo Celata
  **/
 public function generateUnlessAlreadyHasGroupNews()
 {
     $data = $this->getData();
     $sede_id = $this->getSedeId();
     $tipo_atto_id = $this->getOppAtto()->getTipoAttoId();
     $atto_id = $this->getAttoId();
     $politico_id = $this->getOppCarica()->getPoliticoId();
     $cnt = 0;
     // controllo e scrittura notizie di rilevanza 1 (in un certo giorno c'è stato un intervento su un certo atto)
     $has_group_intervention = oppNewsPeer::hasGroupIntervention($data, $sede_id, $tipo_atto_id, $atto_id);
     if (!$has_group_intervention) {
         oppNewsPeer::addGroupIntervention($data, $sede_id, $tipo_atto_id, $atto_id);
         $cnt++;
     }
     return $cnt;
 }