title: how to update and delete two tables together
body: <p>i am unable to update and delete two tables together i have a purchase and stock table. On updating purchase stock should be updated with it and on deleting the purchase data the stock should also be deleted.</p>