fix: @entity(...) decorator gefixt in backend/src/entities
This commit is contained in:
parent
7a8673f66e
commit
55387066f0
12 changed files with 24 additions and 12 deletions
|
@ -1,7 +1,8 @@
|
|||
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { LearningObject } from './learning-object.entity.js';
|
||||
import { AttachmentRepository } from '../../data/content/attachment-repository.js';
|
||||
|
||||
@Entity()
|
||||
@Entity({ repository: () => AttachmentRepository })
|
||||
export class Attachment {
|
||||
@ManyToOne({ entity: () => LearningObject, primary: true })
|
||||
learningObject!: LearningObject;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue