When I delete a record in the database. It shows result as "Cannot delete or update a parent row: a foreign key constraint fails". How can I delete a record with foreign key constraints. Is There any CRUD code for this issue...
Thanks in advance...
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 04 December 2014 - 07:10 AM
When I delete a record in the database. It shows result as "Cannot delete or update a parent row: a foreign key constraint fails". How can I delete a record with foreign key constraints. Is There any CRUD code for this issue...
Thanks in advance...
Posted 08 December 2014 - 03:52 AM
well u can use callback_before_delete
there u can write your code to delete it