summaryrefslogtreecommitdiff
path: root/src/application/mystic/forum/orm
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/mystic/forum/orm')
-rw-r--r--src/application/mystic/forum/orm/Post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application/mystic/forum/orm/Post.php b/src/application/mystic/forum/orm/Post.php
index db297e5..2c9a38c 100644
--- a/src/application/mystic/forum/orm/Post.php
+++ b/src/application/mystic/forum/orm/Post.php
@@ -13,5 +13,5 @@ class Post extends Entity {
public string $content;
#[References("public.users")] public string $authorId;
public \DateTimeImmutable $postDate;
- #[References("public.topics")] public string $topicId;
+ #[References("public.topics", cascadeOnDelete: true)] public string $topicId;
}