add references and submitters

This commit is contained in:
Arno Kaimbacher 2018-10-29 14:24:41 +01:00
parent 14878a20c8
commit d788410cb5
6 changed files with 166 additions and 31 deletions

View file

@ -163,6 +163,12 @@ class Dataset extends Model
return $this->hasMany(\App\Models\File::class, 'document_id', 'id');
}
public function references()
{
return $this->hasMany(\App\Models\DatasetReference::class, 'document_id', 'id');
}
/**
* Get the xml-cache record associated with the dataset.
*