Description
ATOMICALLY insert a header (e.g. order) + N child rows (e.g. order_lines), all in a single transaction. If inserting the lines fails, the header is rolled back too — no phantom orders in DB. Typical for: orders+order_lines, invoices+invoice_lines, deliveries+delivery_items.
