aboutsummaryrefslogtreecommitdiff
path: root/app/Root.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Root.php')
-rw-r--r--app/Root.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/Root.php b/app/Root.php
index 6c0f033..2e21c4e 100644
--- a/app/Root.php
+++ b/app/Root.php
@@ -22,8 +22,12 @@ use Illuminate\Database\Eloquent\Model;
class Root extends Model {
- protected $table = 'roots';
- public $timestamps = false;
- protected $fillable = ['root', 'root_kind_id'];
+ protected $table = 'roots';
+ public $timestamps = false;
+ protected $fillable = ['root', 'root_kind_id'];
+
+ public function kind() {
+ return $this->belongsTo('HebrewParseTrainer\RootKind', 'root_kind_id');
+ }
}