visuddhinanda 10 mesi fa
parent
commit
5507e8cfa8
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      api-v8/app/Models/PaliText.php

+ 5 - 0
api-v8/app/Models/PaliText.php

@@ -16,4 +16,9 @@ class PaliText extends Model
             ->whereColumn('progress_chapters.book', 'pali_texts.book')
             ->whereColumn('progress_chapters.book', 'pali_texts.book')
             ->whereColumn('progress_chapters.para', 'pali_texts.paragraph');
             ->whereColumn('progress_chapters.para', 'pali_texts.paragraph');
     }
     }
+
+    public function tagMaps()
+    {
+        return $this->hasMany(TagMap::class, 'anchor_id', 'uid');
+    }
 }
 }