Hi,
Feature(s) impacted
Relations
Observed behavior
I have 3 SQL Tables
transactionBank
transactionCalculateTemplate
- a table for
transactionCalculateTemplate
hasManytransactionBank
I didn’t see the transactionBank
(There are no transaction bank …) when i’m in the view transactionCalculateTemplate
even if the relations is set like this
TransactionCalculateTemplate.belongsToMany(models.transactionBank, {
through: 'transactionCalculateTemplateTransactionBank',
foreignKey: 'transaction_calculate_template_id',
otherKey: 'transaction_bank_id',
as: 'transactionCalculateTemplateThroughTransactionCalculateTemplateTransactionBanks',
});
Expected behavior
I need to see transaction bank associated to my transaction calculate template
Context
- Project name: cashtrack
- Team name: cashtrack
- Environment name: all
- Agent (forest package) name & version: forest-express-sequelize
7.12.2 (using express 4.17.1) - Database type: PostgreSQL
- Recent changes made on your end if any: …