From c40b523562aad361c129d0d31f250d2553509aef Mon Sep 17 00:00:00 2001 From: Laure Jablonski Date: Sat, 8 Mar 2025 20:44:13 +0100 Subject: [PATCH] fix: functies binnen teacher invitation repo zijn nu beschikbaar --- backend/src/entities/classes/teacher-invitation.entity.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/entities/classes/teacher-invitation.entity.ts b/backend/src/entities/classes/teacher-invitation.entity.ts index 98d2bdd4..877a183b 100644 --- a/backend/src/entities/classes/teacher-invitation.entity.ts +++ b/backend/src/entities/classes/teacher-invitation.entity.ts @@ -1,11 +1,16 @@ import { Entity, ManyToOne } from '@mikro-orm/core'; import { Teacher } from '../users/teacher.entity.js'; import { Class } from './class.entity.js'; +import { TeacherInvitationRepository } from '../../data/classes/teacher-invitation-repository.js'; /** * Invitation of a teacher into a class (in order to teach it). */ -@Entity() +@Entity({ + repository: () => { + return TeacherInvitationRepository; + }, +}) export class TeacherInvitation { @ManyToOne({ entity: () => {