fix: functies binnen answer repo zijn nu beschikbaar

This commit is contained in:
Laure Jablonski 2025-03-09 09:21:14 +01:00
parent b3fbcb17af
commit a697138c6a

View file

@ -1,8 +1,13 @@
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
import { Question } from './question.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 {
@ManyToOne({
entity: () => {