fix: functies binnen answer repo zijn nu beschikbaar
This commit is contained in:
parent
b3fbcb17af
commit
a697138c6a
1 changed files with 6 additions and 1 deletions
|
@ -1,8 +1,13 @@
|
||||||
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
|
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
|
||||||
import { Question } from './question.entity.js';
|
import { Question } from './question.entity.js';
|
||||||
import { Teacher } from '../users/teacher.entity.js';
|
import { Teacher } from '../users/teacher.entity.js';
|
||||||
|
import { AnswerRepository } from '../../data/questions/answer-repository.js';
|
||||||
|
|
||||||
@Entity()
|
@Entity({
|
||||||
|
repository: () => {
|
||||||
|
return AnswerRepository;
|
||||||
|
},
|
||||||
|
})
|
||||||
export class Answer {
|
export class Answer {
|
||||||
@ManyToOne({
|
@ManyToOne({
|
||||||
entity: () => {
|
entity: () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue