Fix the relationship column

This commit is contained in:
James Brooks 2014-11-25 09:04:33 +00:00
parent 9ce390c780
commit b931c59ae6

View File

@ -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');
}
/**