fix: @entity(...) decorator gefixt in backend/src/entities

This commit is contained in:
Adriaan Jacquet 2025-03-05 15:48:35 +01:00
parent 7a8673f66e
commit 55387066f0
12 changed files with 24 additions and 12 deletions

View file

@ -9,8 +9,9 @@ import {
import { Class } from '../classes/class.entity.js';
import { Group } from './group.entity.js';
import { Language } from '../content/language.js';
import { AssignmentRepository } from '../../data/assignments/assignment-repository.js';
@Entity()
@Entity({ repository: () => AssignmentRepository })
export class Assignment {
@ManyToOne({ entity: () => Class, primary: true })
within!: Class;