add cascading deletes to product variant

This commit is contained in:
pKorsholm
2021-09-03 17:20:11 +02:00
parent 3ae6bdb7fc
commit 73a4746500

View File

@@ -43,7 +43,7 @@ export class ProductVariant {
@OneToMany(
() => MoneyAmount,
ma => ma.variant,
{ cascade: true }
{ cascade: true, onDelete: "CASCADE" }
)
prices: MoneyAmount[]