I have 2 tables:
products
id
name
...
photo_products
id
product_id
photo
In PHP I will make a DELETE in the Product, and consequently I want to automatically delete ALL the photos of the deleted product, of course delete also the record in the table.
In the case, I must first fiddle with Cascade (SQL), then in PHP to delete the files, right?