updated models
This commit is contained in:
@@ -10,9 +10,9 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class TableComment extends Model
|
||||
{
|
||||
/** Context data table */
|
||||
public function dataTable()
|
||||
public function table()
|
||||
{
|
||||
return $this->belongsTo(DataTable::class);
|
||||
return $this->belongsTo(Table::class);
|
||||
}
|
||||
|
||||
/** Parent comment (that we reply to; can be null) */
|
||||
@@ -32,10 +32,4 @@ class TableComment extends Model
|
||||
{
|
||||
return $this->belongsTo(User::class, 'author_id');
|
||||
}
|
||||
|
||||
/** Reports of this comment */
|
||||
public function reportsOf()
|
||||
{
|
||||
return $this->morphMany(ContentReport::class, 'object');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user