fix: functies uit attachment repo zijn nu beschikbaar
This commit is contained in:
		
							parent
							
								
									fcd9f66e28
								
							
						
					
					
						commit
						30d2b86fcd
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -1,7 +1,12 @@ | ||||||
| import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'; | import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'; | ||||||
| import { LearningObject } from './learning-object.entity.js'; | import { LearningObject } from './learning-object.entity.js'; | ||||||
|  | import { AttachmentRepository } from '../../data/content/attachment-repository.js'; | ||||||
| 
 | 
 | ||||||
| @Entity() | @Entity({ | ||||||
|  |     repository: () => { | ||||||
|  |         return AttachmentRepository; | ||||||
|  |     }, | ||||||
|  | }) | ||||||
| export class Attachment { | export class Attachment { | ||||||
|     @ManyToOne({ |     @ManyToOne({ | ||||||
|         entity: () => { |         entity: () => { | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Laure Jablonski
						Laure Jablonski