public function getOrgs() { return $this->hasMany(Organization::className(), ['id' => 'org_id'])->viaTable('country_org_rel', ['country_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getOrg() { return $this->hasOne(Organization::className(), ['id' => 'org_id']); }