MyDictionary::En_To_Sk->belongs_to('eng', 'MyDictionary::Engword', 'eng_id'); MyDictionary::En_To_Sk->belongs_to('sk', 'MyDictionary::Skword', 'sk_id'); #### MyDictionary::Engword->many_to_many('sk_translations', 'translations', 'sk'); MyDictionaly::Skword->many_to_many('en_translations', 'translations', 'en');