workflow releasing datasets

This commit is contained in:
Arno Kaimbacher 2019-04-08 18:31:40 +02:00
parent ec127b9457
commit de80de9d88
18 changed files with 355 additions and 107 deletions

View file

@ -36,6 +36,7 @@ class Dataset extends Model
'project_id',
'embargo_date',
'belongs_to_bibliography',
'editor_id'
];
//protected $guarded = [];
/**
@ -94,6 +95,14 @@ class Dataset extends Model
return $this->belongsTo(User::class, 'account_id', 'id');
}
/**
* Get the account that the dataset belongs to
*/
public function editor()
{
return $this->belongsTo(User::class, 'editor_id', 'id');
}
public function collections()
{
return $this