- DOI implementation wit unit testing

This commit is contained in:
Arno Kaimbacher 2021-02-26 17:02:07 +01:00
parent 7f9bd089b1
commit 9b6a6469d7
20 changed files with 2128 additions and 360 deletions

View file

@ -0,0 +1,19 @@
<?php
namespace App\Models;
use App\Models\Dataset;
use Illuminate\Database\Eloquent\Model;
class DatasetIdentifier extends Model
{
protected $table = 'dataset_identifierss';
protected $guarded = array();
/**
* The dataset that belong to the DocumentIdentifier.
*/
public function dataset()
{
return $this->belongsTo(Dataset::class, 'document_id', 'id');
}
}