Пример #1
0
 public function shouldReIndexEntry(array $modifiedColumns = array())
 {
     if (!$this->getSearchableOnEntry()) {
         return false;
     }
     return parent::shouldReIndexEntry($modifiedColumns);
 }
Пример #2
0
 /**
  * @param CuePoint $cuePoint
  */
 protected function cuePointDeleted(CuePoint $cuePoint)
 {
     $c = new Criteria();
     $c->add(CuePointPeer::PARENT_ID, $cuePoint->getId());
     $this->deleteCuePoints($c);
     //re-index cue point on entry
     if ($cuePoint->shouldReIndexEntry()) {
         $this->reIndexCuePointEntry($cuePoint);
     }
 }