Textadventures: no ambiguity in IDs
This commit is contained in:
parent
45d947c637
commit
c7c0c8c108
|
@ -87,7 +87,7 @@ class Textadventures extends Source {
|
|||
}
|
||||
$game->save();
|
||||
$game->languages()->sync([$language->id]);
|
||||
if (isset($author) && !$game->authors()->where('id', $model->id)->exists()) {
|
||||
if (isset($author) && !$game->authors()->where('authors.id', $model->id)->exists()) {
|
||||
$game->authors()->attach($model);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue