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('patient' => array(self::BELONGS_TO, 'Patient', 'patient_id'), 'location' => array(self::BELONGS_TO, 'ContactLocation', 'location_id'), 'contact' => array(self::BELONGS_TO, 'Contact', 'contact_id'));
}