aboutsummaryrefslogtreecommitdiff
path: root/src/Models/Note.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Models/Note.php')
-rw-r--r--src/Models/Note.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Models/Note.php b/src/Models/Note.php
index 901f5aa..594bc79 100644
--- a/src/Models/Note.php
+++ b/src/Models/Note.php
@@ -247,4 +247,13 @@ class Note
->exec($db);
$this->savedToDb = false;
}
+
+ /**
+ * @param SQLite3 $db
+ * @return Attachment[]
+ */
+ public function getAttachments(SQLite3 $db): array
+ {
+ return Attachment::byNoteId($db, $this->id);
+ }
} \ No newline at end of file