add geolocation for datacite metadata anf for backend

This commit is contained in:
Arno Kaimbacher 2019-01-07 11:16:18 +01:00
parent e7d8dc21a0
commit ba38fc1ed1
16 changed files with 3833 additions and 6047 deletions

View file

@ -53,11 +53,11 @@ class Dataset extends Model
}
/**
* Get the user that owns the phone.
* Get the geolocation that owns the dataset.
*/
public function geolocation()
{
return $this->belongsTo(GeolocationBox::class, 'dataset_id', 'id');
return $this->hasOne(GeolocationBox::class, 'dataset_id', 'id');
}
/**