1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 05:30:38 +02:00

Fix table name

This commit is contained in:
Toby Zerner
2018-07-21 15:24:33 +09:30
parent 33973fdb78
commit 5443dc7ce2

View File

@@ -39,7 +39,7 @@ class UserState extends AbstractModel
/**
* {@inheritdoc}
*/
protected $table = 'discussions_users';
protected $table = 'discussion_user';
/**
* {@inheritdoc}
@@ -72,7 +72,7 @@ class UserState extends AbstractModel
*/
public function discussion()
{
return $this->belongsTo(Discussion::class, 'discussion_id');
return $this->belongsTo(Discussion::class);
}
/**
@@ -82,7 +82,7 @@ class UserState extends AbstractModel
*/
public function user()
{
return $this->belongsTo(User::class, 'user_id');
return $this->belongsTo(User::class);
}
/**