/** * @return \yii\db\ActiveQuery */ public function getResCompanies() { return $this->hasMany(ResCompany::className(), ['expense_currency_exchange_account_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getCompany() { return $this->hasOne(ResCompany::className(), ['id' => 'company_id']); }
/** * @return \yii\db\ActiveQuery */ public function getResCompanies() { return $this->hasMany(ResCompany::className(), ['currency_id' => 'id']); }