Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
in my custom module, I have two tables with 1 to many relationships. Now in my admin UI Grid whenever I delete the record it does not delete it.
My question is how i can delete record from both tables at once. Any help would be appreciated.
set ON DELETE CASCADE when you set FOREIGN KEY in your second table.
ON DELETE CASCADE
Required, but never shown