@@ 861-868 (lines=8) @@ | ||
858 | * @param $songId |
|
859 | * @param array $platformIds |
|
860 | */ |
|
861 | public function storeSongPlatformLinks($songId, array $platformIds) |
|
862 | { |
|
863 | $this->dbConn->delete('songs_x_platforms', ['songId' => $songId]); |
|
864 | ||
865 | foreach ($platformIds as $platformId) { |
|
866 | $this->dbConn->insert('songs_x_platforms', ['songId' => $songId, 'platformId' => $platformId]); |
|
867 | } |
|
868 | } |
|
869 | ||
870 | /** |
|
871 | * @param $name |
|
@@ 916-923 (lines=8) @@ | ||
913 | * @param array $instrumentIds |
|
914 | * @throws \Doctrine\DBAL\Exception\InvalidArgumentException |
|
915 | */ |
|
916 | public function storeSongInstrumentLinks($songId, array $instrumentIds) |
|
917 | { |
|
918 | $this->dbConn->delete('songs_x_instruments', ['songId' => $songId]); |
|
919 | ||
920 | foreach ($instrumentIds as $instrumentId) { |
|
921 | $this->dbConn->insert('songs_x_instruments', ['songId' => $songId, 'instrumentId' => $instrumentId]); |
|
922 | } |
|
923 | } |
|
924 | ||
925 | /** |
|
926 | * @param $songId |