Posts by Victor Possidonio • 1 point
1 post
-
0
votes3
answers500
viewsA: Foreign key exclusion
Good afternoon. When creating the table you need to add the options ON DELETE CASCADE. And in your remove method you need to validate if there is a related record, otherwise run the method.…