mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14:13:37 +08:00
Fix table name
This commit is contained in:
parent
33973fdb78
commit
5443dc7ce2
|
@ -39,7 +39,7 @@ class UserState extends AbstractModel
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected $table = 'discussions_users';
|
protected $table = 'discussion_user';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
@ -72,7 +72,7 @@ class UserState extends AbstractModel
|
||||||
*/
|
*/
|
||||||
public function discussion()
|
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()
|
public function user()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(User::class, 'user_id');
|
return $this->belongsTo(User::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user