Transaction
Also written: DB::transaction, database transaction
A group of database changes that commit together or not at all. If anything throws inside DB::transaction(), every row saved is rolled back, so an order is never left without its items.
Also written: DB::transaction, database transaction
A group of database changes that commit together or not at all. If anything throws inside DB::transaction(), every row saved is rolled back, so an order is never left without its items.