How can I delete a MySql record with PDO and PHP ActiveRecord respecting foreign keys.
Example: I will delete a batch record, for example, and there is something registered in the batch I am going to delete so I wanted it not to delete and display a message to the user.