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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -