better collection handlich in backend

This commit is contained in:
Arno Kaimbacher 2018-10-04 16:41:29 +02:00
parent 324eacf061
commit 50bcae442e
24 changed files with 623 additions and 68 deletions

View file

@ -62,6 +62,12 @@ class Dataset extends Model
->belongsToMany(Collection::class, 'link_documents_collections', 'document_id', 'collection_id');
}
// public function collectionRoles()
// {
// return $this
// ->belongsToMany(CollectionRole::class, 'link_documents_collections', 'document_id', 'role_id');
// }
#region [person table]
//return all persons attached to this film