aboutsummaryrefslogtreecommitdiff
path: root/app/Root.php
diff options
context:
space:
mode:
authorCamil Staps2016-09-06 19:56:01 +0200
committerCamil Staps2016-09-06 19:56:01 +0200
commit45e2171ab1c820be52326c827ae30539f0721d8f (patch)
treee0448cfd5d9956e5eb85ecd917706d041aabdafe /app/Root.php
parentUpdate demo link (diff)
Only show roots with active verbs on trainer page
Diffstat (limited to 'app/Root.php')
-rw-r--r--app/Root.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Root.php b/app/Root.php
index 2e21c4e..4e5e9df 100644
--- a/app/Root.php
+++ b/app/Root.php
@@ -30,4 +30,8 @@ class Root extends Model {
return $this->belongsTo('HebrewParseTrainer\RootKind', 'root_kind_id');
}
+ public function verbs() {
+ return $this->hasMany('HebrewParseTrainer\Verb', 'root', 'root');
+ }
+
}