fix: fix faulty relationship query preventing form deletion
Fixes #12. Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
@@ -40,6 +40,6 @@ class Form extends Model
|
||||
|
||||
public function responses()
|
||||
{
|
||||
return $this->belongsTo('App\Response', 'id', 'id');
|
||||
return $this->belongsTo('App\Response', 'id', 'responseFormID');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user