fix: group entity functies bereikbaar

This commit is contained in:
Laure Jablonski 2025-03-08 21:33:20 +01:00
parent 73f14a4074
commit 8389b7a157

View file

@ -1,8 +1,13 @@
import { Entity, ManyToMany, ManyToOne, PrimaryKey } from '@mikro-orm/core';
import { Assignment } from './assignment.entity.js';
import { Student } from '../users/student.entity.js';
import { GroupRepository } from '../../data/assignments/group-repository.js';
@Entity()
@Entity({
repository: () => {
return GroupRepository;
},
})
export class Group {
@ManyToOne({
entity: () => {