Closed Pklong closed 7 years ago
Hey @Pklong! Thanks for reaching out!
Correct me if I'm misguided, but I believe the onDelete should be on the child table. See this for conceptual reference. Let me know if this was helpful.
Yes, you are correct. My apologies!
No problem!
@waiyaki thanks for the great tutorial, it was very helpful. I believe the onDelete option should be passed to the hasMany association if the intention is to remove todoItems associated with a deleted todo. Please let me know if this is all right...