public function deleteDocument($iDocumentId)
 {
     $oDocument = DocumentPeer::retrieveByPK($iDocumentId);
     if ($oDocument && JournalEntryImageQuery::create()->filterByDocument($oDocument)->filterByJournalEntryId($this->iJournalEntryId)->findOne()) {
         return $oDocument->delete();
     }
 }