Example #1
0
 public function getSignificantIndividual()
 {
     if ($this->record) {
         return $this->record;
     }
     return parent::getSignificantIndividual();
 }
Example #2
0
 public function getSignificantIndividual()
 {
     if ($this->record) {
         foreach ($this->record->getSpouses() as $individual) {
             return $individual;
         }
         foreach ($this->record->getChildren() as $individual) {
             return $individual;
         }
     }
     return parent::getSignificantIndividual();
 }