fix: functies binnen teacher invitation repo zijn nu beschikbaar
This commit is contained in:
parent
ebaa79e562
commit
c40b523562
1 changed files with 6 additions and 1 deletions
|
@ -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: () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue