Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd70a11

Browse files
author
Umed Khudoiberdiev
committed
fixed cascade options
1 parent 8987953 commit dd70a11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/entity/Post.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export class Post {
1313
@Column("text")
1414
text: string;
1515

16-
@ManyToMany(type => Category)
16+
@ManyToMany(type => Category, {
17+
cascadeInert: true
18+
})
1719
@JoinTable()
1820
categories: Category[];
1921

0 commit comments

Comments
 (0)