fix: functies question repo beschikbaar

This commit is contained in:
Laure Jablonski 2025-03-08 21:49:41 +01:00
parent a220743083
commit c603bb142a

View file

@ -1,8 +1,13 @@
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.js';
@Entity()
@Entity({
repository: () => {
return QuestionRepository;
},
})
export class Question {
@PrimaryKey({ type: 'string' })
learningObjectHruid!: string;