FamilyHistory::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('relative' => array(self::BELONGS_TO, 'FamilyHistoryRelative', 'relative_id'), 'side' => array(self::BELONGS_TO, 'FamilyHistorySide', 'side_id'), 'condition' => array(self::BELONGS_TO, 'FamilyHistoryCondition', 'condition_id'));
    }