OphTrOperationbooking_Admission_Letter_Warning_Rule::relations PHP 메소드

relations() 공개 메소드

public relations ( ) : array
리턴 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('user' => array(self::BELONGS_TO, 'User', 'created_user_id'), 'usermodified' => array(self::BELONGS_TO, 'User', 'last_modified_user_id'), 'children' => array(self::HAS_MANY, 'OphTrOperationbooking_Admission_Letter_Warning_Rule', 'parent_rule_id'), 'site' => array(self::BELONGS_TO, 'Site', 'site_id'), 'theatre' => array(self::BELONGS_TO, 'OphTrOperationbooking_Operation_Theatre', 'theatre_id'), 'subspecialty' => array(self::BELONGS_TO, 'Subspecialty', 'subspecialty_id'), 'firm' => array(self::BELONGS_TO, 'Firm', 'firm_id'), 'ruleType' => array(self::BELONGS_TO, 'OphTrOperationbooking_Admission_Letter_Warning_Rule_Type', 'rule_type_id'), 'parent' => array(self::BELONGS_TO, 'OphTrOperationbooking_Admission_Letter_Warning_Rule', 'parent_rule_id'));
    }