title: How to delete an entry in a table along with its data in another table?
body: <p>I have a table <code>cars</code> with attributes: <code>id</code>, <code>name</code>. I also have another table <code>specs</code> with <code>id</code>, <code>car_id</code>, <code>name</code>. This tables are related with one to many relations from the Models. I also have set up the foreign keys in.</p>
  
  <p>I have a controller <code>manageData</code> where i have a function <code>insertCar</code> which i use to insert data and update both tables. I wan to create another function <code>deleteCar</code> from where i can delete the car along with its specs from the other table</p>