node.js - Sequelize onDelete cascade not setting in MySQL -
i have issue sequelize associations. tryign set ondelete: 'cascade' hasmany association looks this
model.hasmany(models.income, { foreignkey: 'companyid', ondelete: 'cascade' }); but unfortunately doesn't set in mysql, instead got set null on server. wrong association?
Comments
Post a Comment