mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-24 20:00:53 +00:00
NoteEntity: Enable eager loading and cascades for tags
Signed-off-by: David Mehren <git@herrmehren.de> Co-authored-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
99ab9f04c2
commit
6541cfda4e
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ export class Note {
|
|||
@ManyToMany(
|
||||
_ => Tag,
|
||||
tag => tag.notes,
|
||||
{ eager: true, cascade: true },
|
||||
)
|
||||
@JoinTable()
|
||||
tags: Tag[];
|
||||
|
|
Loading…
Reference in a new issue