add cascading deletes to product variant
This commit is contained in:
1 parent
3ae6bdb7fc
commit
73a4746500
1 file changed
+1
-1
@@ -43,7 +43,7 @@ export class ProductVariant {
|
||||
@OneToMany(
|
||||
() => MoneyAmount,
|
||||
ma => ma.variant,
|
||||
{ cascade: true }
|
||||
{ cascade: true, onDelete: "CASCADE" }
|
||||
)
|
||||
prices: MoneyAmount[]
|
||||
|
||||
|
||||
Reference in new issue
Block a user