From cd113e4d4bd3445ffaeea01b8bb1eafeb2dfdf5e Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Mon, 7 Sep 2015 22:32:40 -0700 Subject: [PATCH] T357: When reclassifying a show song remix, remove previous associations. --- app/commands/ClassifyMLPMA.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commands/ClassifyMLPMA.php b/app/commands/ClassifyMLPMA.php index d085a740..8d7339b1 100644 --- a/app/commands/ClassifyMLPMA.php +++ b/app/commands/ClassifyMLPMA.php @@ -114,7 +114,7 @@ class ClassifyMLPMA extends Command { $track->save(); if (sizeof($linkedSongIds) > 0) { - $track->showSongs()->attach($linkedSongIds); + $track->showSongs()->sync($linkedSongIds); } echo PHP_EOL;