fix: functies question repo beschikbaar
This commit is contained in:
parent
a220743083
commit
c603bb142a
1 changed files with 6 additions and 1 deletions
|
@ -1,8 +1,13 @@
|
||||||
import { Entity, Enum, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
|
import { Entity, Enum, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
|
||||||
import { Language } from '../content/language.js';
|
import { Language } from '../content/language.js';
|
||||||
import { Student } from '../users/student.entity.js';
|
import { Student } from '../users/student.entity.js';
|
||||||
|
import { QuestionRepository } from '../../data/questions/question-repository.js';
|
||||||
|
|
||||||
@Entity()
|
@Entity({
|
||||||
|
repository: () => {
|
||||||
|
return QuestionRepository;
|
||||||
|
},
|
||||||
|
})
|
||||||
export class Question {
|
export class Question {
|
||||||
@PrimaryKey({ type: 'string' })
|
@PrimaryKey({ type: 'string' })
|
||||||
learningObjectHruid!: string;
|
learningObjectHruid!: string;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue