Query Builder Class - Problem with delete vs foreign key constraint |
Hi everyone!
I have this code: PHP Code: /** The code is working when delete function returns !== false ... and seeing the docs https://codeigniter.com/user_guide/datab...ete#delete , in case of failure, the delete function would return false. But I'm getting an error, because I have a MySQL foreign key constraint. I can fix it checking this foreign key constraint first, but the delete function would not returning false? |
Welcome Guest, Not a member yet? Register Sign In |