fix(backend): Bugs omtrent leerpad-endpoints opgelost

This commit is contained in:
Gerald Schmittinger 2025-05-13 01:02:53 +02:00
parent 6929288554
commit 1a768fedcc
6 changed files with 12 additions and 12 deletions

View file

@ -1,5 +1,6 @@
import {
ArrayType,
Cascade,
Collection,
Embedded,
Entity,
@ -93,6 +94,7 @@ export class LearningObject {
@OneToMany({
entity: () => Attachment,
mappedBy: 'learningObject',
cascade: [Cascade.ALL]
})
attachments: Collection<Attachment> = new Collection<Attachment>(this);