summary refs log tree commit diff
path: root/lib/githubexplorer/Schema/Result/Repositories.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/githubexplorer/Schema/Result/Repositories.pm')
-rw-r--r--lib/githubexplorer/Schema/Result/Repositories.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/githubexplorer/Schema/Result/Repositories.pm b/lib/githubexplorer/Schema/Result/Repositories.pm
index 2bd7136..58c0e51 100644
--- a/lib/githubexplorer/Schema/Result/Repositories.pm
+++ b/lib/githubexplorer/Schema/Result/Repositories.pm
@@ -17,8 +17,12 @@ __PACKAGE__->add_columns(
 );
 
 __PACKAGE__->set_primary_key('id');
+
 __PACKAGE__->belongs_to( 'id_profile',
     'githubexplorer::Schema::Result::Profiles' );
+__PACKAGE__->has_many( 'get_languages',
+    'githubexplorer::Schema::Result::RepoLang', 'language' );
+
 __PACKAGE__->add_unique_constraint( [qw/name id_profile/] );
 
 1;