OphTrOperationbooking_Operation_EROD_Rule::relations PHP Méthode

relations() public méthode

public relations ( ) : array
Résultat 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'), 'items' => array(self::HAS_MANY, 'OphTrOperationbooking_Operation_EROD_Rule_Item', 'erod_rule_id'), 'subspecialty' => array(self::BELONGS_TO, 'Subspecialty', 'subspecialty_id'));
    }