fix(backend): Fouten in entity-definities gecorrigeerd.
This commit is contained in:
		
							parent
							
								
									d5101737ef
								
							
						
					
					
						commit
						4d3964c31f
					
				
					 6 changed files with 17 additions and 9 deletions
				
			
		|  | @ -1,9 +1,13 @@ | |||
| import {User} from "./user.entity"; | ||||
| import {Collection, Entity, ManyToMany} from '@mikro-orm/core'; | ||||
| import {Class} from "../classes/class.entity"; | ||||
| import {Group} from "../assigments/group.entity"; | ||||
| 
 | ||||
| @Entity() | ||||
| export class Student extends User { | ||||
|     @ManyToMany(() => Class) | ||||
|     classes!: Collection<Class>; | ||||
| 
 | ||||
|     @ManyToMany(() => Group) | ||||
|     groups!: Collection<Group>; | ||||
| } | ||||
|  |  | |||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger