OphCoTherapyapplication_Treatment::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('decisiontree' => array(self::BELONGS_TO, 'OphCoTherapyapplication_DecisionTree', 'decisiontree_id'), 'drug' => array(self::BELONGS_TO, 'OphTrIntravitrealinjection_Treatment_Drug', 'drug_id'), 'cost_type' => array(self::BELONGS_TO, 'OphCoTherapyapplication_Treatment_CostType', 'cost_type_id'), 'monitoring_frequency_period' => array(self::BELONGS_TO, 'Period', 'monitoring_frequency_period_id'), 'user' => array(self::BELONGS_TO, 'User', 'created_user_id'), 'usermodified' => array(self::BELONGS_TO, 'User', 'last_modified_user_id'));
    }