private function DeleteDocs()
 {
     $supportingDoc = new SupportingDocEntity(SupportingDocEntity::generateTableName($this->entity));
     $suppDocEntityObjects = $supportingDoc->getDocsforEntity($this->{$this->keyName});
     foreach ($suppDocEntityObjects as $doc) {
         $doc->Delete();
     }
 }
Exemple #2
0
 public function LoadPicture()
 {
     if ($this->picture_doc == true) {
         $pictureDoc = new SupportingDocEntity(SupportingDocEntity::generateTableName('picture'));
         $picture_data = $pictureDoc->getDocsforEntity($this->person_record_number);
         $this->picture = $picture_data[0]->doc_id;
     }
 }