We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9af235a commit a07c3fdCopy full SHA for a07c3fd
1 file changed
server/src/database/entities/grading.entity.ts
@@ -98,13 +98,13 @@ export class Grading {
98
@Embedded(() => ExerciseGrading, { array: true })
99
exerciseGradings: ExerciseGrading[] = [];
100
101
- @ManyToOne(() => Sheet)
+ @ManyToOne(() => Sheet, { onDelete: 'cascade' })
102
private sheet?: Sheet;
103
104
- @ManyToOne(() => Scheinexam)
+ @ManyToOne(() => Scheinexam, { onDelete: 'cascade' })
105
private exam?: Scheinexam;
106
107
- @ManyToOne(() => ShortTest)
+ @ManyToOne(() => ShortTest, { onDelete: 'cascade' })
108
private shortTest?: ShortTest;
109
110
@Property({ nullable: false })
0 commit comments