/** * @return \yii\db\ActiveQuery */ public function getCuentas() { return $this->hasMany(Cuenta::className(), ['idconcepto' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getCuenta() { return $this->hasOne(Cuenta::className(), ['id' => 'cuenta_id']); }