add cascading deletes to product variant
This commit is contained in:
@@ -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[]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user