tethys/app/Models/Description.php

24 lines
416 B
PHP
Raw Permalink Normal View History

2019-01-22 17:24:18 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Dataset;
class Description extends Model
{
protected $table = 'dataset_abstracts';
public $timestamps = false;
protected $fillable = [
2019-01-24 16:33:04 +00:00
'value',
'type',
'language'
2019-01-22 17:24:18 +00:00
];
public function dataset()
{
return $this->belongsTo(Dataset::class, 'document_id', 'id');
}
}