Exemplo n.º 1
0
 /**
  * Delete comment
  *
  * @param void
  * @return null
  */
 function delete()
 {
     $deleted = parent::delete();
     if ($deleted) {
         $object = $this->getObject();
         if ($object instanceof ProjectDataObject) {
             $object->onDeleteComment($this);
         }
         // if
     }
     // if
     return $deleted;
 }
Exemplo n.º 2
0
 public function delete(Doctrine_Connection $conn = null)
 {
     LuceneEngine::deleteLuceneIndexFor($this);
     return parent::delete($conn);
 }