/**
  * Deletes an attachment from the database
  * 
  * @param $id integer the database identifier of the attachment
  * @param $dummy not used, only there to keep the interface equal to deleteAttachmentFromDB
  * @return integer returns tl::OK on success, tl::ERROR else
  */
 protected function deleteAttachmentFromDB($id, $dummy = null)
 {
     $attachment = new tlAttachment($id);
     return $attachment->deleteFromDB($this->db);
 }