- small changes for m : n relation between document and dataset_subjects tables
This commit is contained in:
parent
75b37368e4
commit
b15e832776
2 changed files with 2 additions and 2 deletions
|
@ -482,7 +482,7 @@ class IndexController extends Controller
|
|||
// $dataKeyword = new Subject($keyword);
|
||||
// $dataset->subjects()->save($dataKeyword);
|
||||
$keyword = Subject::firstOrCreate(
|
||||
['value' => $keyword['value']],
|
||||
['value' => $keyword['value'], 'language' => $keyword['language']],
|
||||
$keyword
|
||||
);
|
||||
$dataset->subjects()->attach($keyword);
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue