@@ 883-890 (lines=8) @@ | ||
880 | * @param $songId |
|
881 | * @param array $platformIds |
|
882 | */ |
|
883 | public function storeSongPlatformLinks($songId, array $platformIds) |
|
884 | { |
|
885 | $this->dbConn->delete('songs_x_platforms', ['songId' => $songId]); |
|
886 | ||
887 | foreach ($platformIds as $platformId) { |
|
888 | $this->dbConn->insert('songs_x_platforms', ['songId' => $songId, 'platformId' => $platformId]); |
|
889 | } |
|
890 | } |
|
891 | ||
892 | /** |
|
893 | * @param $name |
|
@@ 938-945 (lines=8) @@ | ||
935 | * @param array $instrumentIds |
|
936 | * @throws \Doctrine\DBAL\Exception\InvalidArgumentException |
|
937 | */ |
|
938 | public function storeSongInstrumentLinks($songId, array $instrumentIds) |
|
939 | { |
|
940 | $this->dbConn->delete('songs_x_instruments', ['songId' => $songId]); |
|
941 | ||
942 | foreach ($instrumentIds as $instrumentId) { |
|
943 | $this->dbConn->insert('songs_x_instruments', ['songId' => $songId, 'instrumentId' => $instrumentId]); |
|
944 | } |
|
945 | } |
|
946 | ||
947 | /** |
|
948 | * @param $songId |