Hi, I am wondering how to handle and recognize MySQL type of errors...in cake.
For EXAMPLE.. I have integrity checks (ON DELETE) designed on DB server - when I do delete on some item who has its childs...it is not allowed by DB....so in debug mode in cake i get following.. SQL Error: 1451: Cannot delete or update a parent row: a foreign key constraint fails if i turn off debug mode, i get only 404 Not Found page. is cake able to recognize that error and display nice message like using setFlash?? I would rather tell user than he cannot delete item because it has childs connected to it instead of showing 404 page... which is more confusing... Thanks for help. Tomas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
