fix(backend): Added missing repository-properties to entity annotations

This commit is contained in:
Gerald Schmittinger 2025-03-08 18:15:10 +01:00
parent 02be44fe53
commit 34af354a33
11 changed files with 22 additions and 11 deletions

View file

@ -1,8 +1,9 @@
import { Entity, Enum, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
import { Language } from '../content/language.js';
import { Student } from '../users/student.entity.js';
import {QuestionRepository} from "../../data/questions/question-repository";
@Entity()
@Entity({repository: () => QuestionRepository})
export class Question {
@PrimaryKey({ type: 'string' })
learningObjectHruid!: string;