Fixed errors in entity definitions

This commit is contained in:
Gerald Schmittinger 2025-02-23 14:43:02 +01:00
parent 97b5b185aa
commit 8a0a89fe45
6 changed files with 17 additions and 9 deletions

View file

@ -1,6 +1,7 @@
import {ManyToOne, PrimaryKey, Property} from "@mikro-orm/core";
import {Entity, ManyToOne, PrimaryKey, Property} from "@mikro-orm/core";
import {LearningObject} from "./learning-object.entity";
@Entity()
export class Attachment {
@ManyToOne({entity: () => LearningObject, primary: true})
learningObject!: LearningObject;