Hey all,

Whenever I try to delete a parent row I get an SQL error if it has any
child.

Query: DELETE FROM `one_programs` WHERE `one_programs`.`id` = 53

Warning (512): SQL Error: 1451: Cannot delete or update a parent row:
a foreign key constraint fails (`one/one_ivr_lines`, CONSTRAINT
`one_ivr_lines_ibfk_5` FOREIGN KEY (`program_id`) REFERENCES
`one_programs` (`id`) ON UPDATE CASCADE)

Thing is I did set $cascade  to true:

$this->OneProgram->del($id, true)


Can anyone help?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to