1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 17:36:38 +02:00

decided to leave the posts.discussion_id foreign key constraint to discussions out for now

This commit is contained in:
Daniel Klabbers
2018-07-20 08:41:01 +02:00
parent 90792abf10
commit 5a04635e7a
8 changed files with 14 additions and 15 deletions

View File

@@ -400,7 +400,7 @@ class Discussion extends AbstractModel
*/
public function readers()
{
return $this->belongsToMany(User::class, 'discussions_users');
return $this->belongsToMany(User::class);
}
/**