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

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -