fix(backend): Modellering van ManyToMany-relationships verbeterd
This commit is contained in:
parent
f4fda7db5d
commit
451ac7546f
6 changed files with 13 additions and 17 deletions
|
@ -18,6 +18,8 @@ export class Group {
|
|||
|
||||
@ManyToMany({
|
||||
entity: () => Student,
|
||||
owner: true,
|
||||
inversedBy: "groups"
|
||||
})
|
||||
members!: Student[];
|
||||
members: Collection<Student> = new Collection<Student>(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue