diff options
author | Jonas Kohl | 2024-09-19 14:19:35 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-19 14:19:35 +0200 |
commit | 95bfdb59b6a1e04e474551c23c7caef619c79839 (patch) | |
tree | 0fe7bf17c5767df5084dac05c61b4167781b9b1b /src/application/mystic/forum/orm | |
parent | d7faf7053803aaa9eb8ae85a864ea1b2cccaa586 (diff) |
Topic locking
Diffstat (limited to 'src/application/mystic/forum/orm')
-rw-r--r-- | src/application/mystic/forum/orm/Topic.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/application/mystic/forum/orm/Topic.php b/src/application/mystic/forum/orm/Topic.php index 421f5ec..cfd0c78 100644 --- a/src/application/mystic/forum/orm/Topic.php +++ b/src/application/mystic/forum/orm/Topic.php @@ -3,6 +3,7 @@ declare(strict_types=1); namespace mystic\forum\orm; +use mystic\forum\attributes\DefaultValue; use mystic\forum\attributes\PrimaryKey; use mystic\forum\attributes\References; use mystic\forum\attributes\Table; @@ -13,4 +14,5 @@ class Topic extends Entity { public string $title; public \DateTimeImmutable $creationDate; #[References("public.users", onDelete: References::SET_NULL)] public ?string $createdBy; + #[DefaultValue("false")] public bool $isLocked; } |