public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array('primaryPatient' => array(self::BELONGS_TO, 'Patient', 'primary_id'), 'secondaryPatient' => array(self::BELONGS_TO, 'Patient', 'secondary_id'));
}