public function getTema_rel() { return $this->hasOne(Tema::className(), ['id' => 'tema']); }
/** * @return ActiveQuery */ public function getTemy_rel() { return $this->hasMany(Tema::className(), ['id' => 'tema'])->via('zanyatiya_chastej_tem_rel'); }
/** * @return ActiveQuery */ public function getTemy_rel() { return $this->hasMany(Tema::className(), ['podrazdel' => 'id'])->inverseOf('podrazdel_rel'); }