LetterMacro::relations PHP Method

relations() public method

public relations ( ) : array
return array relational rules.
    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('site' => array(self::BELONGS_TO, 'Site', 'site_id'), 'subspecialty' => array(self::BELONGS_TO, 'Subspecialty', 'subspecialty_id'), 'firm' => array(self::BELONGS_TO, 'Firm', 'firm_id'), 'episode_status' => array(self::BELONGS_TO, 'EpisodeStatus', 'episode_status_id'), 'recipient' => array(self::BELONGS_TO, 'LetterRecipient', 'recipient_id'));
    }