fix: functies binnen teacher invitation repo zijn nu beschikbaar

This commit is contained in:
Laure Jablonski 2025-03-08 20:44:13 +01:00
parent ebaa79e562
commit c40b523562

View file

@ -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: () => {