hi all!
Suppose I have many-to-many relationship between question and
test. Then I add some questions to a test.
So when I try to delete one of that questions, I get:
Cannot delete or update a parent row: a foreign key constraint fails (`sgc/test_question`, CONSTRAINT `FK75EC6E24266D1387` FOREIGN KEY (`questions_id`) REFERENCES `question` (`id`))
Is there some annotation to do this?
Does someone knows how can I manage do delete the child rows before delete the question?