fix: group entity functies bereikbaar
This commit is contained in:
		
							parent
							
								
									73f14a4074
								
							
						
					
					
						commit
						8389b7a157
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -1,8 +1,13 @@ | ||||||
| import { Entity, ManyToMany, ManyToOne, PrimaryKey } from '@mikro-orm/core'; | import { Entity, ManyToMany, ManyToOne, PrimaryKey } from '@mikro-orm/core'; | ||||||
| import { Assignment } from './assignment.entity.js'; | import { Assignment } from './assignment.entity.js'; | ||||||
| import { Student } from '../users/student.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 { | export class Group { | ||||||
|     @ManyToOne({ |     @ManyToOne({ | ||||||
|         entity: () => { |         entity: () => { | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Laure Jablonski
						Laure Jablonski