Foreign key PHP ActiveRecord

0

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.

    
asked by anonymous 04.01.2018 / 19:17

0 answers