From e4ae56885f0ed7f41e82817f1c3a1029074b8c36 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Thu, 10 Sep 2015 12:51:26 +0100 Subject: [PATCH] Merge rPFcd113e4d4bd3: T357: When reclassifying a show song remix, remove previous associations. --- app/Console/Commands/ClassifyMLPMA.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/ClassifyMLPMA.php b/app/Console/Commands/ClassifyMLPMA.php index 9d263e0c..95688eaf 100644 --- a/app/Console/Commands/ClassifyMLPMA.php +++ b/app/Console/Commands/ClassifyMLPMA.php @@ -116,7 +116,7 @@ class ClassifyMLPMA extends Command $track->save(); if (sizeof($linkedSongIds) > 0) { - $track->showSongs()->attach($linkedSongIds); + $track->showSongs()->sync($linkedSongIds); } echo PHP_EOL;