fix: werkende aan 183 fix ([] vervangen door Collection<> in group en assignment)

This commit is contained in:
Adriaan Jacquet 2025-04-12 16:38:16 +02:00
parent 69659426de
commit c4729156ba
6 changed files with 38 additions and 24 deletions

View file

@ -1,4 +1,4 @@
import { Entity, ManyToMany, ManyToOne, PrimaryKey } from '@mikro-orm/core';
import { Collection, 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';
@ -19,5 +19,5 @@ export class Group {
@ManyToMany({
entity: () => Student,
})
members!: Student[];
members!: Collection<Student>;
}