public function _load_identifiers()
 {
     if (!isset($this->person->rel_id)) {
         throw new Exception('cannot display name data for a temporary person without the relationship id');
     }
     $user = MyRelationshipPerson::tempid_meta_select($this->person->wp_id, $this->person->rel_id);
     $this->person->first_name = $user['first_name'];
     $this->person->last_name = $user['last_name'];
 }
 /**
  * Load a relationship specified by id.
  */
 public static function load_by_relid($id)
 {
     $sql = "SELECT * FROM relationships WHERE id = ?";
     $row = PSU::db('portal')->GetRow($sql, array($id));
     $initiator = new MyRelationshipPerson($row['initiator'], $row['reltype_initiator']);
     $target = new MyRelationshipPerson($row['target'], $row['reltype_target']);
     $status = $row['status'];
     $relationship = new self($id, $initiator, $target, $status);
     $initiator->relationship($relationship);
     $target->relationship($relationship);
     return $relationship;
 }