fix(backend): Foreign constraint probleem bij het verwijderen van leerpaden opgelost
This commit is contained in:
parent
63cf60409f
commit
9400b7f33c
7 changed files with 20 additions and 16 deletions
|
@ -1,6 +1,5 @@
|
|||
import {
|
||||
ArrayType,
|
||||
Cascade,
|
||||
Collection,
|
||||
Embedded,
|
||||
Entity,
|
||||
|
@ -93,8 +92,7 @@ export class LearningObject {
|
|||
|
||||
@OneToMany({
|
||||
entity: () => Attachment,
|
||||
mappedBy: 'learningObject',
|
||||
cascade: [Cascade.ALL]
|
||||
mappedBy: 'learningObject'
|
||||
})
|
||||
attachments: Collection<Attachment> = new Collection<Attachment>(this);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue