diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-20 21:49:42 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-20 21:49:42 +0200 |
commit | 5cec6e43d4e193616458a7e9c74a486ceade7e93 (patch) | |
tree | d0728474d103bcd6743e365828b342b750902c33 /util/src/entities/Team.ts | |
parent | :sparkles: route middleware test option (diff) | |
parent | :bug: fix relationships (diff) | |
download | server-5cec6e43d4e193616458a7e9c74a486ceade7e93.tar.xz |
Merge branch 'master' into unittests
Diffstat (limited to 'util/src/entities/Team.ts')
-rw-r--r-- | util/src/entities/Team.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/src/entities/Team.ts b/util/src/entities/Team.ts index beb8bf68..22140b7f 100644 --- a/util/src/entities/Team.ts +++ b/util/src/entities/Team.ts @@ -9,7 +9,9 @@ export class Team extends BaseClass { icon?: string; @JoinColumn({ name: "member_ids" }) - @OneToMany(() => TeamMember, (member: TeamMember) => member.team) + @OneToMany(() => TeamMember, (member: TeamMember) => member.team, { + orphanedRowAction: "delete", + }) members: TeamMember[]; @Column() |