fix(backend): Added missing repository-properties to entity annotations
This commit is contained in:
parent
02be44fe53
commit
34af354a33
11 changed files with 22 additions and 11 deletions
|
@ -1,11 +1,12 @@
|
|||
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";
|
||||
|
||||
/**
|
||||
* Invitation of a teacher into a class (in order to teach it).
|
||||
*/
|
||||
@Entity()
|
||||
@Entity({repository: () => TeacherInvitationRepository})
|
||||
export class TeacherInvitation {
|
||||
@ManyToOne({ entity: () => Teacher, primary: true })
|
||||
sender!: Teacher;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue