/** * @return \yii\db\ActiveQuery */ public function getAccountTaxes() { return $this->hasMany(AccountTax::className(), ['parent_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getTax() { return $this->hasOne(AccountTax::className(), ['id' => 'tax_id']); }