From b931c59ae66a57eb8afaec059b6b2c82137ccd27 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Tue, 25 Nov 2014 09:04:33 +0000 Subject: [PATCH] Fix the relationship column --- app/models/Component.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Component.php b/app/models/Component.php index dea3e4de..1d4b8932 100644 --- a/app/models/Component.php +++ b/app/models/Component.php @@ -6,7 +6,7 @@ * @return Illuminate\Database\Eloquent\Relations */ public function incidents() { - return $this->hasMany('Incident', 'component_id', 'id'); + return $this->hasMany('Incident', 'component', 'id'); } /**