public function delete(Doctrine_Connection $conn = null) { $index = JobeetJobTable::getLuceneIndex(); foreach ($index->find('pk:' . $this->getId()) as $hit) { $index->delete($hit->id); } return parent::delete($conn); }