diff options
Diffstat (limited to 'lib/form.cpp')
| -rw-r--r-- | lib/form.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
| diff --git a/lib/form.cpp b/lib/form.cpp index 4983274..b5348cb 100644 --- a/lib/form.cpp +++ b/lib/form.cpp | |||
| @@ -18,6 +18,11 @@ namespace verbly { | |||
| 18 | 18 | ||
| 19 | const field form::pronunciations = field::joinThrough(object::form, "form_id", object::pronunciation, "forms_pronunciations", "pronunciation_id"); | 19 | const field form::pronunciations = field::joinThrough(object::form, "form_id", object::pronunciation, "forms_pronunciations", "pronunciation_id"); |
| 20 | 20 | ||
| 21 | const field form::anagrams = field::joinField(object::form, "anagram_set_id", object::form); | ||
| 22 | |||
| 23 | const field form::merographs = field::selfJoin(object::form, "form_id", "merography", "holograph_id", "merograph_id"); | ||
| 24 | const field form::holographs = field::selfJoin(object::form, "form_id", "merography", "merograph_id", "holograph_id"); | ||
| 25 | |||
| 21 | field form::words(inflection category) | 26 | field form::words(inflection category) |
| 22 | { | 27 | { |
| 23 | return field::joinThroughWhere(object::form, "form_id", object::word, "lemmas_forms", "lemma_id", "category", static_cast<int>(category)); | 28 | return field::joinThroughWhere(object::form, "form_id", object::word, "lemmas_forms", "lemma_id", "category", static_cast<int>(category)); |
