/** * @return \yii\db\ActiveQuery */ public function getCoas() { return $this->hasMany(Coa::className(), ['parent_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getCoaPotongan() { return $this->hasOne(\backend\models\accounting\Coa::className(), ['id' => 'coa_id_potongan']); }
/** * @return \yii\db\ActiveQuery */ public function getCoa() { return $this->hasOne(Coa::className(), ['id' => 'coa_id']); }