Disorder::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('commonOphthalmicDisorders' => array(self::HAS_MANY, 'CommonOphthalmicDisorder', 'disorder_id'), 'commonSystemicDisorders' => array(self::HAS_MANY, 'CommonSystemicDisorder', 'disorder_id'), 'specialty' => array(self::BELONGS_TO, 'Specialty', 'specialty_id'));
    }