public function delete(Doctrine_Connection $conn = null)
 {
     $ret = aZendSearch::deleteFromDoctrineAndLucene($this, null, $conn);
     $this->clearImageCache();
     // Don't even think about trashing the original until we know
     // it's gone from the db and so forth
     unlink($this->getOriginalPath());
     return $ret;
 }
Exemple #2
0
 public function delete(Doctrine_Connection $conn = null)
 {
     // TODO: must delete outstanding indexing requests here
     return aZendSearch::deleteFromDoctrineAndLucene($this, null, $conn);
 }