fix: nog steeds werkende aan 183 fix, probleem komt mogelijks door het feit dat group niet automatisch een groupNummer krijgt
This commit is contained in:
parent
c4729156ba
commit
8c096ffa15
6 changed files with 38 additions and 28 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Entity, Enum, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { Collection, Entity, Enum, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { Class } from '../classes/class.entity.js';
|
||||
import { Group } from './group.entity.js';
|
||||
import { Language } from '@dwengo-1/common/util/language';
|
||||
|
@ -35,5 +35,5 @@ export class Assignment {
|
|||
entity: () => Group,
|
||||
mappedBy: 'assignment',
|
||||
})
|
||||
groups!: Group[];
|
||||
groups!: Collection<Group>;
|
||||
}
|
||||
|
|
|
@ -19,5 +19,5 @@ export class Group {
|
|||
@ManyToMany({
|
||||
entity: () => Student,
|
||||
})
|
||||
members!: Collection<Student>;
|
||||
members!: Student[];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue