@@ 839-846 (lines=8) @@ | ||
836 | * @param $songId |
|
837 | * @param array $platformIds |
|
838 | */ |
|
839 | public function storeSongPlatformLinks($songId, array $platformIds) |
|
840 | { |
|
841 | $this->dbConn->delete('songs_x_platforms', ['songId' => $songId]); |
|
842 | ||
843 | foreach ($platformIds as $platformId) { |
|
844 | $this->dbConn->insert('songs_x_platforms', ['songId' => $songId, 'platformId' => $platformId]); |
|
845 | } |
|
846 | } |
|
847 | ||
848 | /** |
|
849 | * @param $name |
|
@@ 894-901 (lines=8) @@ | ||
891 | * @param array $instrumentIds |
|
892 | * @throws \Doctrine\DBAL\Exception\InvalidArgumentException |
|
893 | */ |
|
894 | public function storeSongInstrumentLinks($songId, array $instrumentIds) |
|
895 | { |
|
896 | $this->dbConn->delete('songs_x_instruments', ['songId' => $songId]); |
|
897 | ||
898 | foreach ($instrumentIds as $instrumentId) { |
|
899 | $this->dbConn->insert('songs_x_instruments', ['songId' => $songId, 'instrumentId' => $instrumentId]); |
|
900 | } |
|
901 | } |
|
902 | ||
903 | /** |
|
904 | * @param $songId |