0
Updating
Hello Submens can update but menus can not Why? Table have a id as primary key Parent_id as foreign key from id
2 Antworten
0
masih
Question is not clear. Please add description about menu and submenu.
0
this is my error:
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`blog`.`menus`, CONSTRAINT `menus_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `menus` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)