add cascading deletes to product variant

This commit is contained in:
pKorsholm
2021-09-03 17:20:11 +02:00
parent 3ae6bdb7fc
commit 73a4746500
@@ -43,7 +43,7 @@ export class ProductVariant {
@OneToMany( @OneToMany(
() => MoneyAmount, () => MoneyAmount,
ma => ma.variant, ma => ma.variant,
{ cascade: true } { cascade: true, onDelete: "CASCADE" }
) )
prices: MoneyAmount[] prices: MoneyAmount[]